import java.util.Scanner;
public class GradeIf
{
public static void main(String[] args)
{
int Score;
Scanner input = new Scanner(System.in);
System.out.println("请输入分数");
while(true){
Score = input.nextInt();
if(Score<=60 )
System.out.println("D级");
else
if(Score<=70)
System.out.println("C级");
else
if(Score<=85)
System.out.println("B级");
else
System.out.println("A级");
}
}
}