#t176. 石头剪子布
石头剪子布
Rock Paper Scissors
Problem Description
Rock Paper Scissors is a finger-guessing game. Originating in China, it spread to Japan, Korea, and other places, and with the growing Eurasian trade it reached Europe, becoming popular worldwide in modern times. Its simple and clear rules leave no loophole to exploit: a single round is a contest of luck, while multiple rounds are a contest of psychological strategy. This ancient game combines both "chance" and "skill", and is beloved by people all over the world.
The rules: rock beats scissors, paper wraps rock, scissors cut paper.
Now you need to write a program to judge the results of Rock Paper Scissors games.
Input Format
The input consists of lines:
The first line is an integer , indicating games were played in total. .
Each of the next lines contains two strings, representing the choices (rock, scissors, or paper) of the participants Player1 and Player2:
The strings are separated by a space. can only take values from (case-sensitive).
Output Format
Output lines, each corresponding to a winner ( or ), or if the game is a tie, output .
Sample Input
3
Rock Scissors
Paper Paper
Rock Paper
Sample Output
Player1
Tie
Player2
Hint
is rock, is scissors, is paper.