import java.util.Scanner;
public class Test{
public static void main(String[] args){
Scanner s=new Scanner(System.in);
System.out.print("a:");
int a =s.nextInt();
if(a>100 || a<0){
System.out.println("输入错误");
}
if(a>=90 && a<=100){
System.out.println("A等级");
}
else if(a>=80 && a<=89){
System.out.println("B等级");
}
else{
System.out.println("C等级");
}
}}