import java.util.Scanner;

public class Main {
    public static Scanner sc;
    public static void main(String[] args) throws Exception {
        sc = new Scanner(System.in);
        int n = 1;
        while (sc.hasNext()) {
            int i = sc.nextInt();
            if (i == 0) break;
            
            System.out.println("Case " + n + ": " + i);
            n++;
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static Scanner sc;
    public static void main(String[] args) throws Exception {
        sc = new Scanner(System.in);
        int n = 1;
        while (sc.hasNext()) {
            int i = sc.nextInt();
            if (i == 0) break;
            
            System.out.println("Case " + n + ": " + i);
            n++;
        }
    }
} Main public static Scanner sc; sc public static void main(String[] args) throws Exception {
        sc = new Scanner(System.in);
        int n = 1;
        while (sc.hasNext()) {
            int i = sc.nextInt();
            if (i == 0) break;
            
            System.out.println("Case " + n + ": " + i);
            n++;
        }
    } main {
        sc = new Scanner(System.in);
        int n = 1;
        while (sc.hasNext()) {
            int i = sc.nextInt();
            if (i == 0) break;
            
            System.out.println("Case " + n + ": " + i);
            n++;
        }
    } sc = new Scanner(System.in) sc new Scanner(System.in) int n = 1; n 1 while (sc.hasNext()) {
            int i = sc.nextInt();
            if (i == 0) break;
            
            System.out.println("Case " + n + ": " + i);
            n++;
        } sc.hasNext() sc.hasNext sc {
            int i = sc.nextInt();
            if (i == 0) break;
            
            System.out.println("Case " + n + ": " + i);
            n++;
        } int i = sc.nextInt(); i sc.nextInt() sc.nextInt sc if (i == 0) break; i == 0 i 0 break; System.out.println("Case " + n + ": " + i) System.out.println System.out System System.out "Case " + n + ": " + i ": " "Case " + n + ": " + i "Case " n ": " i n++ n String[] args args public class Main {
    public static Scanner sc;
    public static void main(String[] args) throws Exception {
        sc = new Scanner(System.in);
        int n = 1;
        while (sc.hasNext()) {
            int i = sc.nextInt();
            if (i == 0) break;
            
            System.out.println("Case " + n + ": " + i);
            n++;
        }
    }
} public class Main {
    public static Scanner sc;
    public static void main(String[] args) throws Exception {
        sc = new Scanner(System.in);
        int n = 1;
        while (sc.hasNext()) {
            int i = sc.nextInt();
            if (i == 0) break;
            
            System.out.println("Case " + n + ": " + i);
            n++;
        }
    }
} Main
import java.util.Scanner;

public class Main {
    public static Scanner sc;
    public static void main(String[] args) throws Exception {
        sc = new Scanner(System.in);
        int n = 1;
        while (sc.hasNext()) {
            int i = sc.nextInt();
            if (i == 0) break;
            
            System.out.println("Case " + n + ": " + i);
            n++;
        }
    }
}