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