#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; char* Rock="Rock"; char* Paper="Paper"; char* Scissors="Scissors"; bool a1=strcmp(s1,Rock)==1; bool b1=strcmp(s1,Paper)==1; bool c1=strcmp(s1,Scissors)==1; bool a2=strcmp(s2,Rock)==1; bool b2=strcmp(s2,Paper)==1; bool c2=strcmp(s2,Scissors)==1; if((a1==0&&a2==0)||(b1==0&&b2==0)||(c1==0&&c2==0)){ a[i]=0; } else if((a1==0&&b2==0)||(b1==0&&c2==0)&&(c1==0&&a2==0)){ a[i]=2; } else{ a[i]=1; } for(int i=0;i<N;i++){ if(a[i]==0){ cout<<"Tie"; } else if(a[i]==1){ cout<<"Player1"; } else{ cout<<"Player2"; } } return 0; } }