import java.util.Scanner;
public class F {
public class F {
public static void main(String[] args) {
// TODO 自動生成的方法存根
Scanner in=new Scanner(System.in);
int a;
a=in.nextInt();
String result=getGrade(a);//調用函數
System.out.println("對應等級為:"+result);
}
public static String getGrade(int score){
String grade="";//用於儲存對應的等級
if(score>=90&&score<=100){
grade="A";
}else if(score>=80&&score<=89){
grade="B";
}else if(score>=70&&score<=79){
grade="C";
}else if(score>=60&&score<=69){
grade="D";
}else if(score>=0&&score<=59){
grade="E";
}return grade;//把分數等級還給調用者
}
}
// TODO 自動生成的方法存根
Scanner in=new Scanner(System.in);
int a;
a=in.nextInt();
String result=getGrade(a);//調用函數
System.out.println("對應等級為:"+result);
}
public static String getGrade(int score){
String grade="";//用於儲存對應的等級
if(score>=90&&score<=100){
grade="A";
}else if(score>=80&&score<=89){
grade="B";
}else if(score>=70&&score<=79){
grade="C";
}else if(score>=60&&score<=69){
grade="D";
}else if(score>=0&&score<=59){
grade="E";
}return grade;//把分數等級還給調用者
}
}
