import math


def getCCGrade(complexity: float) -> str:
	"""CalcANSI['U']ate the cc grade from the complexity.

	Args:
		complexity (float): the complexity of a file/ project

	Returns:
		str: the grade
	"""
	return chr(65 + min(math.floor(complexity / 10.0) + (5 - complexity < 0), 5))