import java.util.*;

class Main{
	public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);

		int count = 1,x=1;
		while(x>0){
			x = scanner.nextInt();
			if(x==0){break;}
			System.out.println("Case "+count+ ": "+x);
			count++;
		}
	}
} import java.util.*; util.* java class Main{
	public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);

		int count = 1,x=1;
		while(x>0){
			x = scanner.nextInt();
			if(x==0){break;}
			System.out.println("Case "+count+ ": "+x);
			count++;
		}
	}
} Main public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);

		int count = 1,x=1;
		while(x>0){
			x = scanner.nextInt();
			if(x==0){break;}
			System.out.println("Case "+count+ ": "+x);
			count++;
		}
	} main {
		Scanner scanner = new Scanner(System.in);

		int count = 1,x=1;
		while(x>0){
			x = scanner.nextInt();
			if(x==0){break;}
			System.out.println("Case "+count+ ": "+x);
			count++;
		}
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int count = 1 count 1 x=1; x 1 while(x>0){
			x = scanner.nextInt();
			if(x==0){break;}
			System.out.println("Case "+count+ ": "+x);
			count++;
		} x>0 x 0 {
			x = scanner.nextInt();
			if(x==0){break;}
			System.out.println("Case "+count+ ": "+x);
			count++;
		} x = scanner.nextInt() x scanner.nextInt() scanner.nextInt scanner if(x==0){break;} x==0 x 0 {break;} break; System.out.println("Case "+count+ ": "+x) System.out.println System.out System System.out "Case "+count+ ": "+x ": " "Case "+count+ ": "+x "Case " count ": " x count++ count String[] args args
import java.util.*;

class Main{
	public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);

		int count = 1,x=1;
		while(x>0){
			x = scanner.nextInt();
			if(x==0){break;}
			System.out.println("Case "+count+ ": "+x);
			count++;
		}
	}
}