{"raw_statement":[{"iden":"statement","content":"A big marathon is held on Al-Maza Road, Damascus. Runners came from all over the world to run all the way along the road in this big marathon day. The winner is the player who crosses the finish line first.\n\nThe organizers write down finish line crossing time for each player. After the end of the marathon, they had a doubt between 2 possible winners named \"Player1\" and \"Player2\". They will give you the crossing time for those players and they want you to say who is the winner?\n\nFirst line contains number of test cases (1  ≤  T  ≤  100). Each of the next T lines represents one test case with 6 integers H1 M1 S1 H2 M2 S2. Where H1, M1, S1 represent Player1 crossing time (hours, minutes, seconds) and H2, M2, S2 represent Player2 crossing time (hours, minutes, seconds). You can assume that Player1 and Player2 crossing times are on the same day and they are represented in 24 hours format(0  ≤  H1,H2  ≤  23 and 0  ≤  M1,M2,S1,S2  ≤  59)\n\nH1, M1, S1, H2, M2 and S2 will be represented by exactly 2 digits (leading zeros if necessary).\n\nFor each test case, you should print one line containing \"Player1\" if Player1 is the winner, \"Player2\" if Player2 is the winner or \"Tie\" if there is a tie.\n\n"},{"iden":"input","content":"First line contains number of test cases (1  ≤  T  ≤  100). Each of the next T lines represents one test case with 6 integers H1 M1 S1 H2 M2 S2. Where H1, M1, S1 represent Player1 crossing time (hours, minutes, seconds) and H2, M2, S2 represent Player2 crossing time (hours, minutes, seconds). You can assume that Player1 and Player2 crossing times are on the same day and they are represented in 24 hours format(0  ≤  H1,H2  ≤  23 and 0  ≤  M1,M2,S1,S2  ≤  59)H1, M1, S1, H2, M2 and S2 will be represented by exactly 2 digits (leading zeros if necessary)."},{"iden":"output","content":"For each test case, you should print one line containing \"Player1\" if Player1 is the winner, \"Player2\" if Player2 is the winner or \"Tie\" if there is a tie."},{"iden":"examples","content":"Input318 03 04 14 03 0509 45 33 12 03 0106 36 03 06 36 03OutputPlayer2Player1Tie"}],"translated_statement":null,"sample_group":[],"show_order":[],"formal_statement":"**Definitions**  \nLet $ T \\in \\mathbb{Z} $ be the number of test cases.  \nFor each test case $ k \\in \\{1, \\dots, T\\} $, let:  \n- $ (H_{k,1}, M_{k,1}, S_{k,1}) $ be the crossing time of Player1 in hours, minutes, seconds.  \n- $ (H_{k,2}, M_{k,2}, S_{k,2}) $ be the crossing time of Player2 in hours, minutes, seconds.  \n\n**Constraints**  \n1. $ 1 \\leq T \\leq 100 $  \n2. For each $ k \\in \\{1, \\dots, T\\} $:  \n   - $ 0 \\leq H_{k,1}, H_{k,2} \\leq 23 $  \n   - $ 0 \\leq M_{k,1}, M_{k,2}, S_{k,1}, S_{k,2} \\leq 59 $  \n\n**Objective**  \nFor each test case $ k $, define the total time in seconds:  \n$$\nT_{k,1} = 3600 \\cdot H_{k,1} + 60 \\cdot M_{k,1} + S_{k,1}, \\quad T_{k,2} = 3600 \\cdot H_{k,2} + 60 \\cdot M_{k,2} + S_{k,2}\n$$  \nOutput:  \n- \"Player1\" if $ T_{k,1} < T_{k,2} $,  \n- \"Player2\" if $ T_{k,2} < T_{k,1} $,  \n- \"Tie\" if $ T_{k,1} = T_{k,2} $.","simple_statement":"Compare two times in HH:MM:SS format, print \"Player1\" if first is faster, \"Player2\" if second is faster, or \"Tie\" if equal.","has_page_source":false}