import java.util.Scanner;
import java.lang.Math;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
while (in.hasNext()) {
int a=in.nextInt();
if(a>100)
System.out.println("Score is error!");
else if(a>=90)
System.out.println("A");
else if(a>=80)
System.out.println("B");
else if(a>=70)
System.out.println("C");
else if(a>=60)
System.out.println("D");
else if(a>=0)
System.out.println("E");
else
System.out.println("Score is error!");
}
}
}
import java.lang.Math;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
while (in.hasNext()) {
int a=in.nextInt();
if(a>100)
System.out.println("Score is error!");
else if(a>=90)
System.out.println("A");
else if(a>=80)
System.out.println("B");
else if(a>=70)
System.out.println("C");
else if(a>=60)
System.out.println("D");
else if(a>=0)
System.out.println("E");
else
System.out.println("Score is error!");
}
}
}