import java.util.Scanner;
class Lian_if {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("成绩等级");
int x = sc.nextInt();
if (x < 0 || x >100)
{
System.out.println("输出错误");
}else {
int a = x /10;
switch (a)
{
case 10:
case 9:
System.out.println("A等");
break;
case 8:
System.out.println("B等");
break;
case 7:
System.out.println("C等");
break;
case 6:
System.out.println("D等");
break;
default:
System.out.println("E等");
}
}
}
}