import java.io.*;

public class Main{
public static void main(String[] args){
try{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringBuilder sb = new StringBuilder();
	int i = 0;
	while(true){
	i++;
	String str = br.readLine();
	int x = Integer.parseInt(str);
	
		if(x == 0){
		break;
		}

	sb.append("Case ").append(i).append(": ").append(Integer.toString(x)).append("\n");
	}
	
	System.out.print(sb);
}catch(IOException e){
System.out.println(e);
}
}
} import java.io.*; io.* java public class Main{
public static void main(String[] args){
try{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringBuilder sb = new StringBuilder();
	int i = 0;
	while(true){
	i++;
	String str = br.readLine();
	int x = Integer.parseInt(str);
	
		if(x == 0){
		break;
		}

	sb.append("Case ").append(i).append(": ").append(Integer.toString(x)).append("\n");
	}
	
	System.out.print(sb);
}catch(IOException e){
System.out.println(e);
}
}
} Main public static void main(String[] args){
try{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringBuilder sb = new StringBuilder();
	int i = 0;
	while(true){
	i++;
	String str = br.readLine();
	int x = Integer.parseInt(str);
	
		if(x == 0){
		break;
		}

	sb.append("Case ").append(i).append(": ").append(Integer.toString(x)).append("\n");
	}
	
	System.out.print(sb);
}catch(IOException e){
System.out.println(e);
}
} main {
try{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringBuilder sb = new StringBuilder();
	int i = 0;
	while(true){
	i++;
	String str = br.readLine();
	int x = Integer.parseInt(str);
	
		if(x == 0){
		break;
		}

	sb.append("Case ").append(i).append(": ").append(Integer.toString(x)).append("\n");
	}
	
	System.out.print(sb);
}catch(IOException e){
System.out.println(e);
}
} try{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringBuilder sb = new StringBuilder();
	int i = 0;
	while(true){
	i++;
	String str = br.readLine();
	int x = Integer.parseInt(str);
	
		if(x == 0){
		break;
		}

	sb.append("Case ").append(i).append(": ").append(Integer.toString(x)).append("\n");
	}
	
	System.out.print(sb);
}catch(IOException e){
System.out.println(e);
} catch(IOException e){
System.out.println(e);
} IOException e {
System.out.println(e);
} System.out.println(e) System.out.println System.out System System.out e {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringBuilder sb = new StringBuilder();
	int i = 0;
	while(true){
	i++;
	String str = br.readLine();
	int x = Integer.parseInt(str);
	
		if(x == 0){
		break;
		}

	sb.append("Case ").append(i).append(": ").append(Integer.toString(x)).append("\n");
	}
	
	System.out.print(sb);
} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) StringBuilder sb = new StringBuilder(); sb new StringBuilder() int i = 0; i 0 while(true){
	i++;
	String str = br.readLine();
	int x = Integer.parseInt(str);
	
		if(x == 0){
		break;
		}

	sb.append("Case ").append(i).append(": ").append(Integer.toString(x)).append("\n");
	} true {
	i++;
	String str = br.readLine();
	int x = Integer.parseInt(str);
	
		if(x == 0){
		break;
		}

	sb.append("Case ").append(i).append(": ").append(Integer.toString(x)).append("\n");
	} i++ i String str = br.readLine(); str br.readLine() br.readLine br int x = Integer.parseInt(str); x Integer.parseInt(str) Integer.parseInt Integer str if(x == 0){
		break;
		} x == 0 x 0 {
		break;
		} break; sb.append("Case ").append(i).append(": ").append(Integer.toString(x)).append("\n") sb.append("Case ").append(i).append(": ").append(Integer.toString(x)).append sb.append("Case ").append(i).append(": ").append(Integer.toString(x)) sb.append("Case ").append(i).append(": ").append sb.append("Case ").append(i).append(": ") sb.append("Case ").append(i).append sb.append("Case ").append(i) sb.append("Case ").append sb.append("Case ") sb.append sb "Case " i ": " Integer.toString(x) Integer.toString Integer x "\n" System.out.print(sb) System.out.print System.out System System.out sb String[] args args public class Main{
public static void main(String[] args){
try{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringBuilder sb = new StringBuilder();
	int i = 0;
	while(true){
	i++;
	String str = br.readLine();
	int x = Integer.parseInt(str);
	
		if(x == 0){
		break;
		}

	sb.append("Case ").append(i).append(": ").append(Integer.toString(x)).append("\n");
	}
	
	System.out.print(sb);
}catch(IOException e){
System.out.println(e);
}
}
} public class Main{
public static void main(String[] args){
try{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringBuilder sb = new StringBuilder();
	int i = 0;
	while(true){
	i++;
	String str = br.readLine();
	int x = Integer.parseInt(str);
	
		if(x == 0){
		break;
		}

	sb.append("Case ").append(i).append(": ").append(Integer.toString(x)).append("\n");
	}
	
	System.out.print(sb);
}catch(IOException e){
System.out.println(e);
}
}
} Main
import java.io.*;

public class Main{
public static void main(String[] args){
try{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringBuilder sb = new StringBuilder();
	int i = 0;
	while(true){
	i++;
	String str = br.readLine();
	int x = Integer.parseInt(str);
	
		if(x == 0){
		break;
		}

	sb.append("Case ").append(i).append(": ").append(Integer.toString(x)).append("\n");
	}
	
	System.out.print(sb);
}catch(IOException e){
System.out.println(e);
}
}
}