题目描述
include[HTML_REMOVED]
include[HTML_REMOVED]
using namespace std;
int main(){
string s,p;
int n,a;
cin>>n;
while(n--){
cin>>s>>p;
if(s=="Hunter")a=0;
else if(s=="Gun")a=1;
else a=2;
int b=0;
if(p=="Hunter")b=0;
else if(p=="Gun")b=1;
else b=2;
if(a==b)puts("Tie");
else if(b==(a+1)%3)puts("Player1");
else puts("Player2");
}
}