import java.util.Scanner;

public class k25 {
public static void main(String[] args){
Scanner in=new Scanner(System.in);
System.out.println("请输入百分之成绩:");
int s=in.nextInt();
if(s>=0&&s<=100){
switch(s/10){
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;
case 5:
case 4:
case 3:
case 2:
case 1:
case 0:
System.out.println("E");
break;
}
}
else{
System.out.println("输入的成绩不合法,请您输入0-100的百分制成绩!");
}
}

}