import java.util.*;

public class Main{
	public static void main(String[] args){
		List<Integer> numbers = new ArrayList<Integer>();
		Scanner scan = new Scanner(System.in);
		for(;;){
			int n = scan.nextInt();
			if(n == 0){
				break;
			}
			numbers.add(n);
		}

		int i = 0;
		for(Integer n : numbers){
			System.out.printf("Case %d: %d\n", ++i, n);
		}
	}
} import java.util.*; util.* java public class Main{
	public static void main(String[] args){
		List<Integer> numbers = new ArrayList<Integer>();
		Scanner scan = new Scanner(System.in);
		for(;;){
			int n = scan.nextInt();
			if(n == 0){
				break;
			}
			numbers.add(n);
		}

		int i = 0;
		for(Integer n : numbers){
			System.out.printf("Case %d: %d\n", ++i, n);
		}
	}
} Main public static void main(String[] args){
		List<Integer> numbers = new ArrayList<Integer>();
		Scanner scan = new Scanner(System.in);
		for(;;){
			int n = scan.nextInt();
			if(n == 0){
				break;
			}
			numbers.add(n);
		}

		int i = 0;
		for(Integer n : numbers){
			System.out.printf("Case %d: %d\n", ++i, n);
		}
	} main {
		List<Integer> numbers = new ArrayList<Integer>();
		Scanner scan = new Scanner(System.in);
		for(;;){
			int n = scan.nextInt();
			if(n == 0){
				break;
			}
			numbers.add(n);
		}

		int i = 0;
		for(Integer n : numbers){
			System.out.printf("Case %d: %d\n", ++i, n);
		}
	} List<Integer> numbers = new ArrayList<Integer>(); numbers new ArrayList<Integer>() Scanner scan = new Scanner(System.in); scan new Scanner(System.in) for(;;){
			int n = scan.nextInt();
			if(n == 0){
				break;
			}
			numbers.add(n);
		} ; {
			int n = scan.nextInt();
			if(n == 0){
				break;
			}
			numbers.add(n);
		} {
			int n = scan.nextInt();
			if(n == 0){
				break;
			}
			numbers.add(n);
		} int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan if(n == 0){
				break;
			} n == 0 n 0 {
				break;
			} break; numbers.add(n) numbers.add numbers n int i = 0; i 0 for(Integer n : numbers){
			System.out.printf("Case %d: %d\n", ++i, n);
		} Integer n numbers {
			System.out.printf("Case %d: %d\n", ++i, n);
		} {
			System.out.printf("Case %d: %d\n", ++i, n);
		} System.out.printf("Case %d: %d\n", ++i, n) System.out.printf System.out System System.out "Case %d: %d\n" ++i i n String[] args args public class Main{
	public static void main(String[] args){
		List<Integer> numbers = new ArrayList<Integer>();
		Scanner scan = new Scanner(System.in);
		for(;;){
			int n = scan.nextInt();
			if(n == 0){
				break;
			}
			numbers.add(n);
		}

		int i = 0;
		for(Integer n : numbers){
			System.out.printf("Case %d: %d\n", ++i, n);
		}
	}
} public class Main{
	public static void main(String[] args){
		List<Integer> numbers = new ArrayList<Integer>();
		Scanner scan = new Scanner(System.in);
		for(;;){
			int n = scan.nextInt();
			if(n == 0){
				break;
			}
			numbers.add(n);
		}

		int i = 0;
		for(Integer n : numbers){
			System.out.printf("Case %d: %d\n", ++i, n);
		}
	}
} Main
import java.util.*;

public class Main{
	public static void main(String[] args){
		List<Integer> numbers = new ArrayList<Integer>();
		Scanner scan = new Scanner(System.in);
		for(;;){
			int n = scan.nextInt();
			if(n == 0){
				break;
			}
			numbers.add(n);
		}

		int i = 0;
		for(Integer n : numbers){
			System.out.printf("Case %d: %d\n", ++i, n);
		}
	}
}