#include<bits/stdc++.h>
#include<cstdio>
using namespace std;
int main(){
int x,y,z;
cin>>x>>y>>z;
if(y<=0 or y>315 or y>=x or x>1800 or z>=1000 or z<=100){
cout<<"Wrong Data";
return 0;
}
if(z*2<x){
cout<<"No";
return 0;
}
int o;
if(z>=x)o=1;
else o=2;
cout<<"Yes\n";
if(y+int(o*z*33/100)>=315)cout<<"Great";
else if(y+int(o*z/2)>=315)cout<<"Eh..\nOK";
else if(y+o*z>=315)cout<<"Oh..\nYes , If he can get 5-star.";
else cout<<"No\nNo\nNo\n"<<y+int(o*z/2);
return 0;
}