import java.util.Arrays;
import java.util.Scanner;


public class Main {
	
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		
		for(int tt = 1; ; tt++){
			final long input = sc.nextLong();
			
			if(input == 0){
				break;
			}
			
			System.out.println("Case " + tt + ": " + input);
		}
		
		
	}
	
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {
	
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		
		for(int tt = 1; ; tt++){
			final long input = sc.nextLong();
			
			if(input == 0){
				break;
			}
			
			System.out.println("Case " + tt + ": " + input);
		}
		
		
	}
	
} Main public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		
		for(int tt = 1; ; tt++){
			final long input = sc.nextLong();
			
			if(input == 0){
				break;
			}
			
			System.out.println("Case " + tt + ": " + input);
		}
		
		
	} main {
		Scanner sc = new Scanner(System.in);
		
		for(int tt = 1; ; tt++){
			final long input = sc.nextLong();
			
			if(input == 0){
				break;
			}
			
			System.out.println("Case " + tt + ": " + input);
		}
		
		
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) for(int tt = 1; ; tt++){
			final long input = sc.nextLong();
			
			if(input == 0){
				break;
			}
			
			System.out.println("Case " + tt + ": " + input);
		} int tt = 1; int tt = 1; tt 1 tt++ tt++ tt {
			final long input = sc.nextLong();
			
			if(input == 0){
				break;
			}
			
			System.out.println("Case " + tt + ": " + input);
		} {
			final long input = sc.nextLong();
			
			if(input == 0){
				break;
			}
			
			System.out.println("Case " + tt + ": " + input);
		} final long input = sc.nextLong(); input sc.nextLong() sc.nextLong sc if(input == 0){
				break;
			} input == 0 input 0 {
				break;
			} break; System.out.println("Case " + tt + ": " + input) System.out.println System.out System System.out "Case " + tt + ": " + input ": " "Case " + tt + ": " + input "Case " tt ": " input String args[] args public class Main {
	
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		
		for(int tt = 1; ; tt++){
			final long input = sc.nextLong();
			
			if(input == 0){
				break;
			}
			
			System.out.println("Case " + tt + ": " + input);
		}
		
		
	}
	
} public class Main {
	
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		
		for(int tt = 1; ; tt++){
			final long input = sc.nextLong();
			
			if(input == 0){
				break;
			}
			
			System.out.println("Case " + tt + ": " + input);
		}
		
		
	}
	
} Main
import java.util.Arrays;
import java.util.Scanner;


public class Main {
	
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		
		for(int tt = 1; ; tt++){
			final long input = sc.nextLong();
			
			if(input == 0){
				break;
			}
			
			System.out.println("Case " + tt + ": " + input);
		}
		
		
	}
	
}