시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 128 MB38432629786.842%

문제

Mr. Petersworth is a 10th grade history teacher at True Blue High School. The principal of True Blue gives Mr. Petersworth a list of the students in his class with their first and last names on separate lines. This is slow for taking attendance; Mr. Petersworth would rather first and last names be on the same line, with the last name before the first name.

입력

The first line of input is the number of test cases that follow. Each test case contains two strings on separate lines, with the first string being the student’s first name and the second string as the student’s last name. Both the first and last name will be less than 20 characters long.

출력

For each case, output the line “Case x:” where x is the case number, on a single line. This is followed by the full name entered, using the format “Last, First”.

예제 입력 1

5
Tyler
Lopez
Alexandra
Johnson
Martin
Young
Sabrina
Chao
Arjun
Gupta

예제 출력 1

Case 1: Lopez, Tyler
Case 2: Johnson, Alexandra
Case 3: Young, Martin
Case 4: Chao, Sabrina
Case 5: Gupta, Arjun