q=input().split() a=q[0] a=int(a) if a<90: if a<80: if a<70: if a<60: print("D") else: print("C") else: print("C") else: print("B") else: print("A")