
import java.util.Scanner;

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

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int counter = 1;
		while (sc.hasNext()) {
			String s1 = sc.next();
			if (s1.equals("0")) {
				break;
			}
			System.out.println("Case "+counter+": "+s1);
			counter++;
		}
	}
}