Under construction

Still being built. Things may change

Goodbye, Code Jam

Time limit1sMemory limit1024 MB

Summary
Given a contestant's rank in their last round, output the last Code Jam round they entered, using the cutoffs of 4500, 1000, and 25.
Level

Easy2 of 10

Topics
Implementation
Solved
No attempts yet

Problem

Every year in April and May, Google Code Jam takes place. Sadly, Google decided to end the Google Coding Competition, which it had run since 2023 in various forms such as Code Jam, Kick Start, and Hash Code. Despairing that he could no longer receive a T-shirt, Beoshri decided to make a problem that remembers Google Code Jam.

Google Code Jam proceeds in the order of Qualification Round, Round 1, Round 2, Round 3, and World Finals. Except for World Finals, which has no next round, and the Qualification Round, which advances anyone with 30 or more points, a contestant must place within a fixed rank to advance. Round 1 requires a top 4 5004\,500 finish, Round 2 requires a top 1 0001\,000 finish, and Round 3 requires a top 2525 finish to advance to the next round.

Input

The input is given from standard input in the following format.

The first line contains the number of test cases TT. (1≤T≤100)(1 \le T \le 100)

For each test case, the first line contains NN, the rank the participant achieved in the last round they entered. (1≤N≤30 000)(1 \le N \le 30\,000)

Output

Google Code Jam has a tradition of printing Case #xx: before the output of the xx-th test case. Beoshri wants solvers to follow this convention, so the output format is fixed as follows.

For each test case, print one line in the form Case #xx: yy. Here xx is the test case number starting from 1, and yy is the name of the last round the participant entered.

Hint

Round 1 is made of three rounds, Round 1A, Round 1B, and Round 1C, and advancing requires a top 1 5001\,500 finish in one of them. The problem uses 4 5004\,500 for simplicity.

Examples1

  1. Example 1

    Input
    4
    10000
    1234
    567
    8
    
    Expected output
    Case #1: Round 1
    Case #2: Round 2
    Case #3: Round 3
    Case #4: World Finals