//90分以上A 80-89为B70-79为C60-69为D60以下E
#include<stdio.h>
int main()
{
int score,s;
scanf("%d",&score);
s=score/10;
switch(s)
{
case 10:printf("A");break;
case 9:printf("A");break;
case 8:printf("B");break;
case 7:printf("C");break;
case 6:printf("D");break;
case 5:
case 4:
case 3:
case 2:
case 1:
case 0: printf("E");break;
}
return 0;
}