#include <stdio.h>
int main()
{
long n;
double s;
printf("[StuS2]\n");
do
{
printf("学号:");
scanf("%ld",&n);
printf("成绩:");
scanf("%lf",&s);
}while(!(n>0&&s>=0&&s<=100));
if(s>=85)
printf("优秀\n");
else if(s<60)
printf("不合格\n");
else
printf("合格\n");
return 0;
}