#include <stdio.h>
int main()
{
int t;
while(scanf("%d",&t)!=EOF)
{
if(t>=0&&t<=100)
{
t=t/10;
switch(t)
{
case 10:
case 9:
printf("An");
break;
case 8:
printf("Bn");
break;
case 7:
printf("Cn");
break;
case 6:
printf("Dn");
break;
default:
printf("En");
break;
}
}
else
{
printf("Score is error!n");
}
}
return 0;
}