import java.io.*;
import java.util.Scanner;
import java.util.Arrays;

class Main {
    static Scanner sc = new Scanner(System.in);
    public static void main(String[] args) throws IOException {
        for(int i = 1; ; ++i) {
            int n = ReadInt();
            if( n == 0 ) break;
            System.out.println("Case " + i + ": " + n);
        }
    }
    static int ReadInt() throws IOException {
        return Integer.parseInt(sc.next());
    }
} import java.io.*; io.* java import java.util.Scanner; Scanner java.util import java.util.Arrays; Arrays java.util class Main {
    static Scanner sc = new Scanner(System.in);
    public static void main(String[] args) throws IOException {
        for(int i = 1; ; ++i) {
            int n = ReadInt();
            if( n == 0 ) break;
            System.out.println("Case " + i + ": " + n);
        }
    }
    static int ReadInt() throws IOException {
        return Integer.parseInt(sc.next());
    }
} Main static Scanner sc = new Scanner(System.in); sc new Scanner(System.in) public static void main(String[] args) throws IOException {
        for(int i = 1; ; ++i) {
            int n = ReadInt();
            if( n == 0 ) break;
            System.out.println("Case " + i + ": " + n);
        }
    } main {
        for(int i = 1; ; ++i) {
            int n = ReadInt();
            if( n == 0 ) break;
            System.out.println("Case " + i + ": " + n);
        }
    } for(int i = 1; ; ++i) {
            int n = ReadInt();
            if( n == 0 ) break;
            System.out.println("Case " + i + ": " + n);
        } int i = 1; int i = 1; i 1 ++i ++i i {
            int n = ReadInt();
            if( n == 0 ) break;
            System.out.println("Case " + i + ": " + n);
        } {
            int n = ReadInt();
            if( n == 0 ) break;
            System.out.println("Case " + i + ": " + n);
        } int n = ReadInt(); n ReadInt() ReadInt if( n == 0 ) break; n == 0 n 0 break; System.out.println("Case " + i + ": " + n) System.out.println System.out System System.out "Case " + i + ": " + n ": " "Case " + i + ": " + n "Case " i ": " n String[] args args static int ReadInt() throws IOException {
        return Integer.parseInt(sc.next());
    } ReadInt {
        return Integer.parseInt(sc.next());
    } return Integer.parseInt(sc.next()); Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc
import java.io.*;
import java.util.Scanner;
import java.util.Arrays;

class Main {
    static Scanner sc = new Scanner(System.in);
    public static void main(String[] args) throws IOException {
        for(int i = 1; ; ++i) {
            int n = ReadInt();
            if( n == 0 ) break;
            System.out.println("Case " + i + ": " + n);
        }
    }
    static int ReadInt() throws IOException {
        return Integer.parseInt(sc.next());
    }
}