import java.io.*;

class Main {
    public static void main (String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int num, i = 1;
        while (true) {
            num = Integer.parseInt(br.readLine());
            if (num == 0) break;
            System.out.println("Case "+i+": "+num);
            i++;
        }
    }
} import java.io.*; io.* java class Main {
    public static void main (String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int num, i = 1;
        while (true) {
            num = Integer.parseInt(br.readLine());
            if (num == 0) break;
            System.out.println("Case "+i+": "+num);
            i++;
        }
    }
} Main public static void main (String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int num, i = 1;
        while (true) {
            num = Integer.parseInt(br.readLine());
            if (num == 0) break;
            System.out.println("Case "+i+": "+num);
            i++;
        }
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int num, i = 1;
        while (true) {
            num = Integer.parseInt(br.readLine());
            if (num == 0) break;
            System.out.println("Case "+i+": "+num);
            i++;
        }
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int num num i = 1; i 1 while (true) {
            num = Integer.parseInt(br.readLine());
            if (num == 0) break;
            System.out.println("Case "+i+": "+num);
            i++;
        } true {
            num = Integer.parseInt(br.readLine());
            if (num == 0) break;
            System.out.println("Case "+i+": "+num);
            i++;
        } num = Integer.parseInt(br.readLine()) num Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br if (num == 0) break; num == 0 num 0 break; System.out.println("Case "+i+": "+num) System.out.println System.out System System.out "Case "+i+": "+num ": " "Case "+i+": "+num "Case " i ": " num i++ i String[] args args
import java.io.*;

class Main {
    public static void main (String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int num, i = 1;
        while (true) {
            num = Integer.parseInt(br.readLine());
            if (num == 0) break;
            System.out.println("Case "+i+": "+num);
            i++;
        }
    }
}