#include<iostream>
#include<algorithm>
#include<cmath>
using namespace std;
int main()
{
int N;
double H;
double W;
double standard;
cin >> N;
for (int i = 0; i < N; i++)
{
cin >> H;
cin >> W;
standard = (H - 100.0)*0.9 * 2;//标准市斤体重
if (abs(W - standard) < standard*0.1)
{
cout << "You are wan mei!" << endl;
}
else if ((W - standard) < 0)
{
cout << "You are tai shou le!" << endl;
}
else if ((W - standard) > 0)
{
cout << "You are tai pang le!" << endl;
}
}
system("pause");
return 0;
}