#include int main() { int n; scanf("%d",&n); puts(n>89?"A":n>79?"B":n>69?"C":n>59?"D":"F"); return 0; }