#include <bits/stdc++.h>
using namespace std;
int main(){
int h,w;//身高、体重
cin>>h>>w;
double r = w / (h * h * 1.0 / 100 / 100);
if(r >= 24){
cout<<"Too fat!"<<endl;
cout<<w - (int)(24 * (h * h * 1.0 / 100 / 100))<<endl;
}else if(r <= 18){
cout<<"Too thin!"<<endl;
cout<<(int)ceil((18 * (h * h * 1.0 / 100 / 100)) - w)<<endl;
}else{
cout<<"Good!"<<endl;
}
}
/**************************************************************
Problem: 1524
User: admin
Language: C++
Result: Accepted
Time:53 ms
Memory:2072 kb
****************************************************************/