import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		int times = 1;
		try {
			Scanner sc = new Scanner(System.in);
			while (true) {
				int x = Integer.parseInt(sc.next());
				if (x == 0) {
					break;
				} else {
					System.out.println("Case " + times + ": " + x);
					times += 1;
				}
			}
			sc.close();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		int times = 1;
		try {
			Scanner sc = new Scanner(System.in);
			while (true) {
				int x = Integer.parseInt(sc.next());
				if (x == 0) {
					break;
				} else {
					System.out.println("Case " + times + ": " + x);
					times += 1;
				}
			}
			sc.close();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
} Main public static void main(String[] args) {
		int times = 1;
		try {
			Scanner sc = new Scanner(System.in);
			while (true) {
				int x = Integer.parseInt(sc.next());
				if (x == 0) {
					break;
				} else {
					System.out.println("Case " + times + ": " + x);
					times += 1;
				}
			}
			sc.close();
		} catch (Exception e) {
			e.printStackTrace();
		}
	} main {
		int times = 1;
		try {
			Scanner sc = new Scanner(System.in);
			while (true) {
				int x = Integer.parseInt(sc.next());
				if (x == 0) {
					break;
				} else {
					System.out.println("Case " + times + ": " + x);
					times += 1;
				}
			}
			sc.close();
		} catch (Exception e) {
			e.printStackTrace();
		}
	} int times = 1; times 1 try {
			Scanner sc = new Scanner(System.in);
			while (true) {
				int x = Integer.parseInt(sc.next());
				if (x == 0) {
					break;
				} else {
					System.out.println("Case " + times + ": " + x);
					times += 1;
				}
			}
			sc.close();
		} catch (Exception e) {
			e.printStackTrace();
		} catch (Exception e) {
			e.printStackTrace();
		} Exception e {
			e.printStackTrace();
		} e.printStackTrace() e.printStackTrace e {
			Scanner sc = new Scanner(System.in);
			while (true) {
				int x = Integer.parseInt(sc.next());
				if (x == 0) {
					break;
				} else {
					System.out.println("Case " + times + ": " + x);
					times += 1;
				}
			}
			sc.close();
		} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) while (true) {
				int x = Integer.parseInt(sc.next());
				if (x == 0) {
					break;
				} else {
					System.out.println("Case " + times + ": " + x);
					times += 1;
				}
			} true {
				int x = Integer.parseInt(sc.next());
				if (x == 0) {
					break;
				} else {
					System.out.println("Case " + times + ": " + x);
					times += 1;
				}
			} int x = Integer.parseInt(sc.next()); x Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc if (x == 0) {
					break;
				} else {
					System.out.println("Case " + times + ": " + x);
					times += 1;
				} x == 0 x 0 {
					break;
				} break; {
					System.out.println("Case " + times + ": " + x);
					times += 1;
				} System.out.println("Case " + times + ": " + x) System.out.println System.out System System.out "Case " + times + ": " + x ": " "Case " + times + ": " + x "Case " times ": " x times += 1 times 1 sc.close() sc.close sc String[] args args public class Main {
	public static void main(String[] args) {
		int times = 1;
		try {
			Scanner sc = new Scanner(System.in);
			while (true) {
				int x = Integer.parseInt(sc.next());
				if (x == 0) {
					break;
				} else {
					System.out.println("Case " + times + ": " + x);
					times += 1;
				}
			}
			sc.close();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
} public class Main {
	public static void main(String[] args) {
		int times = 1;
		try {
			Scanner sc = new Scanner(System.in);
			while (true) {
				int x = Integer.parseInt(sc.next());
				if (x == 0) {
					break;
				} else {
					System.out.println("Case " + times + ": " + x);
					times += 1;
				}
			}
			sc.close();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		int times = 1;
		try {
			Scanner sc = new Scanner(System.in);
			while (true) {
				int x = Integer.parseInt(sc.next());
				if (x == 0) {
					break;
				} else {
					System.out.println("Case " + times + ": " + x);
					times += 1;
				}
			}
			sc.close();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}