#include <iostream> using namespace std; int main() { int score; cin >> score; if(score < 0||score >100) cout << "成绩不合法"; else { switch(score/10){ case 10: case 9 :cout << "优秀";break; case 8 :cout << "良";break; case 7 :cout << "中";break; case 6 :cout << "及格";break; case 5 : case 4 : case 3 : case 2 : case 1 : case 0 :cout << "差"; } } return 0; }