#include<stdio.h>
int main()
{
int a;
while(scanf("%d",&a)!=EOF){
if(a>=&&a<=){
printf("E\n");
}
else if(a>=&&a<=){
printf("A\n");
}
else if(a>=&&a<=){
printf("B\n");
}
else if(a>=&&a<=){
printf("C\n");
}
else if(a>=&&a<=){
printf("D\n");
}
else{
printf("Score is error!\n");
}
}
}