시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 (추가 시간 없음) 256 MB111100.000%

문제

Kick Start is a global online coding competition brought by Google. Participants can compete in online rounds held throughout the entire year, and will have the opportunity to develop and grow their programming abilities while getting a glimpse into the technical skills needed for a career at Google.

Mr. Panda is a Kick Start enthusiast who doesn't miss any Kick Start round of any year. He is now reading the 2019 schedule of rounds and wonders what's the date of the next Kick Start round (excluding today). Can you help Mr. Panda determine that date?

Any given date in this problem will be in the format of a month abbreviation followed by a date ordinal number. Recall that month abbreviations are 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sept', 'Oct', 'Nov', and 'Dec'; and ordinal numbers are '1st', '2nd', '3rd', '4th', '5th', etc.

입력

The first line of the input gives the number of test cases, $T$ ($1 \le T \le 100$). $T$ test cases follow.

For each test case, the first line contains an integer $n$ ($1 \le n \le 20$), the number of scheduled Kick Start rounds for this year.

In the next $n$ lines, each line contains a date in the year 2019, in the format of a month abbreviation followed by a date ordinal number. Note that scheduled dates may not be arranged in chronological order, and all scheduled dates are distinct.

The last line contains the date of today, also in the format of a month abbreviation followed by a date ordinal number.

출력

For each test case, output one line containing "Case #x: y", where x is the test case number (starting from $1$), and y is the date of the next Kick Start round or "See you next year" (quotes for clarity) if there is no following Kick Start round of this year.

예제 입력 1

2
3
Jan 1st
Feb 2nd
Mar 3rd
Jan 2nd
8
Mar 24th
Apr 20th
May 26th
Jul 28th
Aug 25th
Sept 29th
Oct 19th
Nov 17th
Nov 17th

예제 출력 1

Case #1: Feb 2nd
Case #2: See you next year