__author__ = "Kartik"

x = int(input())

if x in range(90,101):
  print ("A")
elif x in range(80,90):
  print ("B")
elif x in range(70,80):
  print ("C")
elif x in range(60,70):
  print ("D")
else:
  print ("F")