import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.print("请输入学生成绩: ");
int gread = sc.nextInt();
System.out.println(gread);
if (gread>=90&&gread<=100){
System.out.print("该学生成绩为优秀");
}else if(80<=gread&&gread<90){
System.out.print("该学生成绩为良好");
}else if(60<=gread&&gread<90){
System.out.print("该学生成绩为合格");
}else if(gread<60&&gread>=0){
System.out.print("该学生成绩为不合格");
}else if(gread<0||gread>100){
System.out.print("您输入的成绩有误");
}
}
}