import java.io.*;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;

class Main {
    public static void main(String[] args) throws IOException {
       Scanner in = new Scanner(System.in);
       int d;
       int idx = 0;
       while((d = in.nextInt()) != 0) {
	       System.out.printf("Case %d: %d\n", ++idx, d);
       }
    }
} import java.io.*; io.* java import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util import java.util.Scanner; Scanner java.util class Main {
    public static void main(String[] args) throws IOException {
       Scanner in = new Scanner(System.in);
       int d;
       int idx = 0;
       while((d = in.nextInt()) != 0) {
	       System.out.printf("Case %d: %d\n", ++idx, d);
       }
    }
} Main public static void main(String[] args) throws IOException {
       Scanner in = new Scanner(System.in);
       int d;
       int idx = 0;
       while((d = in.nextInt()) != 0) {
	       System.out.printf("Case %d: %d\n", ++idx, d);
       }
    } main {
       Scanner in = new Scanner(System.in);
       int d;
       int idx = 0;
       while((d = in.nextInt()) != 0) {
	       System.out.printf("Case %d: %d\n", ++idx, d);
       }
    } Scanner in = new Scanner(System.in); in new Scanner(System.in) int d; d int idx = 0; idx 0 while((d = in.nextInt()) != 0) {
	       System.out.printf("Case %d: %d\n", ++idx, d);
       } (d = in.nextInt()) != 0 (d = in.nextInt()) d in.nextInt() in.nextInt in 0 {
	       System.out.printf("Case %d: %d\n", ++idx, d);
       } System.out.printf("Case %d: %d\n", ++idx, d) System.out.printf System.out System System.out "Case %d: %d\n" ++idx idx d String[] args args
import java.io.*;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;

class Main {
    public static void main(String[] args) throws IOException {
       Scanner in = new Scanner(System.in);
       int d;
       int idx = 0;
       while((d = in.nextInt()) != 0) {
	       System.out.printf("Case %d: %d\n", ++idx, d);
       }
    }
}