import java.util.Scanner;

public class Main {


    public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int data, cnt = 0;
		while(true){//?????????????????????????????§????????????
			data = scan.nextInt();
			if(data == 0){
				break;
			}
			System.out.println("Case " + ++cnt +  ": " + data);
		}
        scan.close();
    }
} import java.util.Scanner; Scanner java.util public class Main {


    public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int data, cnt = 0;
		while(true){//?????????????????????????????§????????????
			data = scan.nextInt();
			if(data == 0){
				break;
			}
			System.out.println("Case " + ++cnt +  ": " + data);
		}
        scan.close();
    }
} Main public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int data, cnt = 0;
		while(true){//?????????????????????????????§????????????
			data = scan.nextInt();
			if(data == 0){
				break;
			}
			System.out.println("Case " + ++cnt +  ": " + data);
		}
        scan.close();
    } main {
		Scanner scan = new Scanner(System.in);
		int data, cnt = 0;
		while(true){//?????????????????????????????§????????????
			data = scan.nextInt();
			if(data == 0){
				break;
			}
			System.out.println("Case " + ++cnt +  ": " + data);
		}
        scan.close();
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int data data cnt = 0; cnt 0 while(true){//?????????????????????????????§????????????
			data = scan.nextInt();
			if(data == 0){
				break;
			}
			System.out.println("Case " + ++cnt +  ": " + data);
		} true {//?????????????????????????????§????????????
			data = scan.nextInt();
			if(data == 0){
				break;
			}
			System.out.println("Case " + ++cnt +  ": " + data);
		} data = scan.nextInt() data scan.nextInt() scan.nextInt scan if(data == 0){
				break;
			} data == 0 data 0 {
				break;
			} break; System.out.println("Case " + ++cnt +  ": " + data) System.out.println System.out System System.out "Case " + ++cnt +  ": " + data ": " "Case " + ++cnt +  ": " + data "Case " ++cnt cnt ": " data scan.close() scan.close scan String[] args args public class Main {


    public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int data, cnt = 0;
		while(true){//?????????????????????????????§????????????
			data = scan.nextInt();
			if(data == 0){
				break;
			}
			System.out.println("Case " + ++cnt +  ": " + data);
		}
        scan.close();
    }
} public class Main {


    public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int data, cnt = 0;
		while(true){//?????????????????????????????§????????????
			data = scan.nextInt();
			if(data == 0){
				break;
			}
			System.out.println("Case " + ++cnt +  ": " + data);
		}
        scan.close();
    }
} Main
import java.util.Scanner;

public class Main {


    public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int data, cnt = 0;
		while(true){//?????????????????????????????§????????????
			data = scan.nextInt();
			if(data == 0){
				break;
			}
			System.out.println("Case " + ++cnt +  ": " + data);
		}
        scan.close();
    }
}