import java.io.BufferedReader;
import java.io.InputStreamReader;


public class Main {
	public static void main(String[] args) throws Exception {
try {
	BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
	int x = Integer.parseInt(buf.readLine());
	int count = 1;
	
	while(x != 0){
		System.out.println("Case " + count + ": " + x);
		x = Integer.parseInt(buf.readLine());
		count ++;
	}
} catch (Exception e) {
	// TODO: handle exception
}
		 }
    } import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
	public static void main(String[] args) throws Exception {
try {
	BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
	int x = Integer.parseInt(buf.readLine());
	int count = 1;
	
	while(x != 0){
		System.out.println("Case " + count + ": " + x);
		x = Integer.parseInt(buf.readLine());
		count ++;
	}
} catch (Exception e) {
	// TODO: handle exception
}
		 }
    } Main public static void main(String[] args) throws Exception {
try {
	BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
	int x = Integer.parseInt(buf.readLine());
	int count = 1;
	
	while(x != 0){
		System.out.println("Case " + count + ": " + x);
		x = Integer.parseInt(buf.readLine());
		count ++;
	}
} catch (Exception e) {
	// TODO: handle exception
}
		 } main {
try {
	BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
	int x = Integer.parseInt(buf.readLine());
	int count = 1;
	
	while(x != 0){
		System.out.println("Case " + count + ": " + x);
		x = Integer.parseInt(buf.readLine());
		count ++;
	}
} catch (Exception e) {
	// TODO: handle exception
}
		 } try {
	BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
	int x = Integer.parseInt(buf.readLine());
	int count = 1;
	
	while(x != 0){
		System.out.println("Case " + count + ": " + x);
		x = Integer.parseInt(buf.readLine());
		count ++;
	}
} catch (Exception e) {
	// TODO: handle exception
} catch (Exception e) {
	// TODO: handle exception
} Exception e {
	// TODO: handle exception
} {
	BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
	int x = Integer.parseInt(buf.readLine());
	int count = 1;
	
	while(x != 0){
		System.out.println("Case " + count + ": " + x);
		x = Integer.parseInt(buf.readLine());
		count ++;
	}
} BufferedReader buf = new BufferedReader(new InputStreamReader(System.in)); buf new BufferedReader(new InputStreamReader(System.in)) int x = Integer.parseInt(buf.readLine()); x Integer.parseInt(buf.readLine()) Integer.parseInt Integer buf.readLine() buf.readLine buf int count = 1; count 1 while(x != 0){
		System.out.println("Case " + count + ": " + x);
		x = Integer.parseInt(buf.readLine());
		count ++;
	} x != 0 x 0 {
		System.out.println("Case " + count + ": " + x);
		x = Integer.parseInt(buf.readLine());
		count ++;
	} System.out.println("Case " + count + ": " + x) System.out.println System.out System System.out "Case " + count + ": " + x ": " "Case " + count + ": " + x "Case " count ": " x x = Integer.parseInt(buf.readLine()) x Integer.parseInt(buf.readLine()) Integer.parseInt Integer buf.readLine() buf.readLine buf count ++ count String[] args args public class Main {
	public static void main(String[] args) throws Exception {
try {
	BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
	int x = Integer.parseInt(buf.readLine());
	int count = 1;
	
	while(x != 0){
		System.out.println("Case " + count + ": " + x);
		x = Integer.parseInt(buf.readLine());
		count ++;
	}
} catch (Exception e) {
	// TODO: handle exception
}
		 }
    } public class Main {
	public static void main(String[] args) throws Exception {
try {
	BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
	int x = Integer.parseInt(buf.readLine());
	int count = 1;
	
	while(x != 0){
		System.out.println("Case " + count + ": " + x);
		x = Integer.parseInt(buf.readLine());
		count ++;
	}
} catch (Exception e) {
	// TODO: handle exception
}
		 }
    } Main
import java.io.BufferedReader;
import java.io.InputStreamReader;


public class Main {
	public static void main(String[] args) throws Exception {
try {
	BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
	int x = Integer.parseInt(buf.readLine());
	int count = 1;
	
	while(x != 0){
		System.out.println("Case " + count + ": " + x);
		x = Integer.parseInt(buf.readLine());
		count ++;
	}
} catch (Exception e) {
	// TODO: handle exception
}
		 }
    }