import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;

import java.util.Collections;
import java.util.List;
import java.util.StringTokenizer;

public class Main {
	private StringTokenizer st;
	private BufferedReader bf;
	private int w,h,x,y,r;
	
	Main() {
		readData();
		


	}
	

	private void readData() {
		try {
			bf = new BufferedReader(new InputStreamReader(System.in));
			st = new StringTokenizer(bf.readLine());
			
			w = nextInt();
			int i = 1;
			while (w != 0) {
				System.out.println("Case "+i+": "+w);
				i++;
				w = nextInt();
			}

			
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	
	private int nextInt() throws IOException {
		return Integer.parseInt(next());
	}
	
	private String next() throws IOException {
		if (st == null || !st.hasMoreTokens())
			st = new StringTokenizer(bf.readLine());
		return st.nextToken();
	}
	
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Main m = new Main();
	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util import java.util.List; List java.util import java.util.StringTokenizer; StringTokenizer java.util public class Main {
	private StringTokenizer st;
	private BufferedReader bf;
	private int w,h,x,y,r;
	
	Main() {
		readData();
		


	}
	

	private void readData() {
		try {
			bf = new BufferedReader(new InputStreamReader(System.in));
			st = new StringTokenizer(bf.readLine());
			
			w = nextInt();
			int i = 1;
			while (w != 0) {
				System.out.println("Case "+i+": "+w);
				i++;
				w = nextInt();
			}

			
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	
	private int nextInt() throws IOException {
		return Integer.parseInt(next());
	}
	
	private String next() throws IOException {
		if (st == null || !st.hasMoreTokens())
			st = new StringTokenizer(bf.readLine());
		return st.nextToken();
	}
	
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Main m = new Main();
	}

} Main private StringTokenizer st; st private BufferedReader bf; bf private int w w h h x x y y r; r Main() {
		readData();
		


	} Main {
		readData();
		


	} readData() readData private void readData() {
		try {
			bf = new BufferedReader(new InputStreamReader(System.in));
			st = new StringTokenizer(bf.readLine());
			
			w = nextInt();
			int i = 1;
			while (w != 0) {
				System.out.println("Case "+i+": "+w);
				i++;
				w = nextInt();
			}

			
		} catch (Exception e) {
			e.printStackTrace();
		}
	} readData {
		try {
			bf = new BufferedReader(new InputStreamReader(System.in));
			st = new StringTokenizer(bf.readLine());
			
			w = nextInt();
			int i = 1;
			while (w != 0) {
				System.out.println("Case "+i+": "+w);
				i++;
				w = nextInt();
			}

			
		} catch (Exception e) {
			e.printStackTrace();
		}
	} try {
			bf = new BufferedReader(new InputStreamReader(System.in));
			st = new StringTokenizer(bf.readLine());
			
			w = nextInt();
			int i = 1;
			while (w != 0) {
				System.out.println("Case "+i+": "+w);
				i++;
				w = nextInt();
			}

			
		} catch (Exception e) {
			e.printStackTrace();
		} catch (Exception e) {
			e.printStackTrace();
		} Exception e {
			e.printStackTrace();
		} e.printStackTrace() e.printStackTrace e {
			bf = new BufferedReader(new InputStreamReader(System.in));
			st = new StringTokenizer(bf.readLine());
			
			w = nextInt();
			int i = 1;
			while (w != 0) {
				System.out.println("Case "+i+": "+w);
				i++;
				w = nextInt();
			}

			
		} bf = new BufferedReader(new InputStreamReader(System.in)) bf new BufferedReader(new InputStreamReader(System.in)) st = new StringTokenizer(bf.readLine()) st new StringTokenizer(bf.readLine()) w = nextInt() w nextInt() nextInt int i = 1; i 1 while (w != 0) {
				System.out.println("Case "+i+": "+w);
				i++;
				w = nextInt();
			} w != 0 w 0 {
				System.out.println("Case "+i+": "+w);
				i++;
				w = nextInt();
			} System.out.println("Case "+i+": "+w) System.out.println System.out System System.out "Case "+i+": "+w ": " "Case "+i+": "+w "Case " i ": " w i++ i w = nextInt() w nextInt() nextInt private int nextInt() throws IOException {
		return Integer.parseInt(next());
	} nextInt {
		return Integer.parseInt(next());
	} return Integer.parseInt(next()); Integer.parseInt(next()) Integer.parseInt Integer next() next private String next() throws IOException {
		if (st == null || !st.hasMoreTokens())
			st = new StringTokenizer(bf.readLine());
		return st.nextToken();
	} next {
		if (st == null || !st.hasMoreTokens())
			st = new StringTokenizer(bf.readLine());
		return st.nextToken();
	} if (st == null || !st.hasMoreTokens())
			st = new StringTokenizer(bf.readLine()); st == null || !st.hasMoreTokens() st == null st null !st.hasMoreTokens() st.hasMoreTokens() st.hasMoreTokens st st = new StringTokenizer(bf.readLine()) st new StringTokenizer(bf.readLine()) return st.nextToken(); st.nextToken() st.nextToken st public static void main(String[] args) {
		// TODO Auto-generated method stub
		Main m = new Main();
	} main {
		// TODO Auto-generated method stub
		Main m = new Main();
	} Main m = new Main(); m new Main() String[] args args public class Main {
	private StringTokenizer st;
	private BufferedReader bf;
	private int w,h,x,y,r;
	
	Main() {
		readData();
		


	}
	

	private void readData() {
		try {
			bf = new BufferedReader(new InputStreamReader(System.in));
			st = new StringTokenizer(bf.readLine());
			
			w = nextInt();
			int i = 1;
			while (w != 0) {
				System.out.println("Case "+i+": "+w);
				i++;
				w = nextInt();
			}

			
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	
	private int nextInt() throws IOException {
		return Integer.parseInt(next());
	}
	
	private String next() throws IOException {
		if (st == null || !st.hasMoreTokens())
			st = new StringTokenizer(bf.readLine());
		return st.nextToken();
	}
	
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Main m = new Main();
	}

} public class Main {
	private StringTokenizer st;
	private BufferedReader bf;
	private int w,h,x,y,r;
	
	Main() {
		readData();
		


	}
	

	private void readData() {
		try {
			bf = new BufferedReader(new InputStreamReader(System.in));
			st = new StringTokenizer(bf.readLine());
			
			w = nextInt();
			int i = 1;
			while (w != 0) {
				System.out.println("Case "+i+": "+w);
				i++;
				w = nextInt();
			}

			
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	
	private int nextInt() throws IOException {
		return Integer.parseInt(next());
	}
	
	private String next() throws IOException {
		if (st == null || !st.hasMoreTokens())
			st = new StringTokenizer(bf.readLine());
		return st.nextToken();
	}
	
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Main m = new Main();
	}

} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;

import java.util.Collections;
import java.util.List;
import java.util.StringTokenizer;

public class Main {
	private StringTokenizer st;
	private BufferedReader bf;
	private int w,h,x,y,r;
	
	Main() {
		readData();
		


	}
	

	private void readData() {
		try {
			bf = new BufferedReader(new InputStreamReader(System.in));
			st = new StringTokenizer(bf.readLine());
			
			w = nextInt();
			int i = 1;
			while (w != 0) {
				System.out.println("Case "+i+": "+w);
				i++;
				w = nextInt();
			}

			
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	
	private int nextInt() throws IOException {
		return Integer.parseInt(next());
	}
	
	private String next() throws IOException {
		if (st == null || !st.hasMoreTokens())
			st = new StringTokenizer(bf.readLine());
		return st.nextToken();
	}
	
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Main m = new Main();
	}

}