# a = int(input()) # print("A" if a > 89 else "B" if a > 79 else "C" if a >69 else "D" if a>59 else "F") print("FFFFFFDCBAA"[int(input())//10])