import java.util.*;

public class Main {
	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		ArrayList<Integer> al = new ArrayList<>();
		
		int i = 0;
		int cnt = 0;
		int x = 999;
		while(x != 0) {
			x = sc.nextInt();
			if(x == 0) {
				break;
			} else {
				cnt++;
				al.add(x);
			}
		}
		
		while(i < cnt) {
			i++;
			System.out.println("Case " + i + ": " + al.get(i-1));
		}
		
		
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		ArrayList<Integer> al = new ArrayList<>();
		
		int i = 0;
		int cnt = 0;
		int x = 999;
		while(x != 0) {
			x = sc.nextInt();
			if(x == 0) {
				break;
			} else {
				cnt++;
				al.add(x);
			}
		}
		
		while(i < cnt) {
			i++;
			System.out.println("Case " + i + ": " + al.get(i-1));
		}
		
		
	}
} Main public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		ArrayList<Integer> al = new ArrayList<>();
		
		int i = 0;
		int cnt = 0;
		int x = 999;
		while(x != 0) {
			x = sc.nextInt();
			if(x == 0) {
				break;
			} else {
				cnt++;
				al.add(x);
			}
		}
		
		while(i < cnt) {
			i++;
			System.out.println("Case " + i + ": " + al.get(i-1));
		}
		
		
	} main {
		
		Scanner sc = new Scanner(System.in);
		ArrayList<Integer> al = new ArrayList<>();
		
		int i = 0;
		int cnt = 0;
		int x = 999;
		while(x != 0) {
			x = sc.nextInt();
			if(x == 0) {
				break;
			} else {
				cnt++;
				al.add(x);
			}
		}
		
		while(i < cnt) {
			i++;
			System.out.println("Case " + i + ": " + al.get(i-1));
		}
		
		
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) ArrayList<Integer> al = new ArrayList<>(); al new ArrayList<>() int i = 0; i 0 int cnt = 0; cnt 0 int x = 999; x 999 while(x != 0) {
			x = sc.nextInt();
			if(x == 0) {
				break;
			} else {
				cnt++;
				al.add(x);
			}
		} x != 0 x 0 {
			x = sc.nextInt();
			if(x == 0) {
				break;
			} else {
				cnt++;
				al.add(x);
			}
		} x = sc.nextInt() x sc.nextInt() sc.nextInt sc if(x == 0) {
				break;
			} else {
				cnt++;
				al.add(x);
			} x == 0 x 0 {
				break;
			} break; {
				cnt++;
				al.add(x);
			} cnt++ cnt al.add(x) al.add al x while(i < cnt) {
			i++;
			System.out.println("Case " + i + ": " + al.get(i-1));
		} i < cnt i cnt {
			i++;
			System.out.println("Case " + i + ": " + al.get(i-1));
		} i++ i System.out.println("Case " + i + ": " + al.get(i-1)) System.out.println System.out System System.out "Case " + i + ": " + al.get(i-1) ": " "Case " + i + ": " + al.get(i-1) "Case " i ": " al.get(i-1) al.get al i-1 i 1 String[] args args public class Main {
	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		ArrayList<Integer> al = new ArrayList<>();
		
		int i = 0;
		int cnt = 0;
		int x = 999;
		while(x != 0) {
			x = sc.nextInt();
			if(x == 0) {
				break;
			} else {
				cnt++;
				al.add(x);
			}
		}
		
		while(i < cnt) {
			i++;
			System.out.println("Case " + i + ": " + al.get(i-1));
		}
		
		
	}
} public class Main {
	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		ArrayList<Integer> al = new ArrayList<>();
		
		int i = 0;
		int cnt = 0;
		int x = 999;
		while(x != 0) {
			x = sc.nextInt();
			if(x == 0) {
				break;
			} else {
				cnt++;
				al.add(x);
			}
		}
		
		while(i < cnt) {
			i++;
			System.out.println("Case " + i + ": " + al.get(i-1));
		}
		
		
	}
} Main
import java.util.*;

public class Main {
	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		ArrayList<Integer> al = new ArrayList<>();
		
		int i = 0;
		int cnt = 0;
		int x = 999;
		while(x != 0) {
			x = sc.nextInt();
			if(x == 0) {
				break;
			} else {
				cnt++;
				al.add(x);
			}
		}
		
		while(i < cnt) {
			i++;
			System.out.println("Case " + i + ": " + al.get(i-1));
		}
		
		
	}
}