//#include<iostream>
//
//using namespace std;
//
//int main()
//{
//
// int a;
//
// cin >> a;
//
// if (a%6==0||a>=50&&a<=70){
// cout << "win" << endl;
// }
//
// else{
// cout << "lose" << endl;
// }
//
//return 0;
//}
//17
#include<iostream>
using namespace std;
int main()
{
int x, y;
cin >> x;
y = ( ( (x/10) + (x%10*10) ) * 2) %100;
// if(y >=100) {
// y -= 100;
// }
cout << y;
if(y <= 50) {
cout << "\nGOOD";
}
else {
cout << "\nOH MY GOD";
}
/*if(y<50){
cout << "GOOD" << endl;
}
else{
cout << "OH MY GOD"
}
*/
return 0;
}



