#include <stdio.h> int main() { int n = 0; scanf("%d",&n); int i = 0; int j = n; j/=10; if(n>=0) { switch(j) { case 0: case 1: case 2: case 3: case 4: case 5: printf("E"); break; case 6: printf("D"); break; case 7: printf("C"); break; case 8: printf("B"); break; case 9: case 10: printf("A"); break; default: printf("F"); } } else { printf("F"); } return 0; }