The first line of input contains a single integer $T$ ≤ 1000 indicating the number of testcases.
Each testcase consists of three lines. The first line is in the form of “hour:minute AM/PM” (1 ≤ $hour$ ≤ 12, 00 ≤ $minute$ ≤ 59) indicating the local time. Next two lines contain two strings $s_1$, $s_2$. $s_1$ is the name of city corresponding to the given time, while $s_2$ indicates the city you are expected to calculate the local time.
For each testcase, begin with “Case $i$:”, where $i$ indicate the case number, and then output a single line in the following format“Yesterday/Today/Tomorrow $hour:minute$ AM/PM”, separated by spaces. The first word describes the corresponding date.
2
12:00 AM
London
Moscow
4:00 PM
London
Beijing
Case 1: Today 3:00 AM
Case 2: Tomorrow 12:00 AM