#include<bits/stdc++.h>
using namespace std;
int main()
{
int x,y,z;
cin>>x>>y>>z;
if(y<=0||y>315||y>=x||x>1800||z>=1000||z<=100) cout<<"Wrong Data";
else if(z>=x)
{
cout<<"Yes"<<endl;
if(int(0.33*z)+y>=315) cout<<"Great";
else if(int(0.5*z)+y>=315) cout<<"Eh.."<<endl<<"OK";
else if(z+y>=315) cout<<"Oh.."<<endl<<"Oh.."<<endl<<"Yes , If he can get 5-star.";
else cout<<"No"<<endl<<"No"<<endl<<"No"<<endl<<int(0.5*z)+y;
}
else if(2*z>=x)
{
cout<<"Yes"<<endl;
if(int(0.66*z)+y>=315) cout<<"Great";
else if(z+y>=315) cout<<"Eh.."<<endl<<"OK";
else if(2*z+y>=315) cout<<"Oh.."<<endl<<"Oh.."<<endl<<"Yes , If he can get 5-star.";
else cout<<"No"<<endl<<"No"<<endl<<"No"<<endl<<z+y;
}
else cout<<"No";
}