#include<iostream> #include<cstring> using namespace std; int a[101]; int main() { int N; cin>>N; char s1[20]; char s2[20]; //cout << "hello" << endl; for(int i=0;i<N;i++){ cin>>s1>>s2; if(strcmp(s1,s2)==0){ a[i]=0; } else{ a[i]=(3-strcmp(s1,s2))/2; } cin.clear(); //cout << "====="; //cout << s1 << " " << s2 << " " << endl; } for(int i=0;i<N;i++){ //cout<<a[i]; if(a[i]==0){ cout<<"Tie"; } else if(a[i] == 1) { cout<<"Player2"; } else { cout<<"Player1"; } cout<<endl; } return 0; }