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