import java.util.Scanner;
public class test02 {
/**
* 成绩判断的列子 switch
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner scanner = new Scanner(System.in);
System.out.println("请输入成绩:");
int x =scanner.nextInt();
switch (x/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("C");
break;
default:
if(x>100 || x<0){
System.out.println("成绩有误");
break;
}
System.out.println("E");
break;
}
}
}