a = input()
b = int(a)
if b >= 90 and b <= 100:
    print("A")
elif b >= 80 and b < 90:
    print("B")
elif b >= 70 and b < 80:
    print("C")
elif b >= 60 and b < 70:
    print("D")
else:
    print("F")