#include<**ostream>
#include<*cmath>
using namespace std;
int main()
{
int l;
while(cin>>l)
{
if(l>=90&&l<=100)
cout<<“A”<<endl;
else if(l>=80&&l<=89)
cout<<“B”<<endl;
else if(l>=70&&l<=79)
cout<<“C”<<endl;
else if(l>=60&&l<=69)
cout<<“D”<<endl;
else if(l>=0&&l<=59)
cout<<“E”<<endl;
else
cout<<“Score is error!”<<endl;
}
}