import java.util.Scanner;
import java.io.*;


class Main {
	public static void main(String args[]) {
	    Scanner sc = new Scanner(System.in);
	    int i = 1;
	    while( true ){
	    	String s = sc.next();
	    	int x = Integer.parseInt(s);
	    	if( x == 0 ){
	    		break;
	    	}
	    	System.out.println("Case " + i + ": " + x );
	    	i++;
	    }
	}
} import java.util.Scanner; Scanner java.util import java.io.*; io.* java class Main {
	public static void main(String args[]) {
	    Scanner sc = new Scanner(System.in);
	    int i = 1;
	    while( true ){
	    	String s = sc.next();
	    	int x = Integer.parseInt(s);
	    	if( x == 0 ){
	    		break;
	    	}
	    	System.out.println("Case " + i + ": " + x );
	    	i++;
	    }
	}
} Main public static void main(String args[]) {
	    Scanner sc = new Scanner(System.in);
	    int i = 1;
	    while( true ){
	    	String s = sc.next();
	    	int x = Integer.parseInt(s);
	    	if( x == 0 ){
	    		break;
	    	}
	    	System.out.println("Case " + i + ": " + x );
	    	i++;
	    }
	} main {
	    Scanner sc = new Scanner(System.in);
	    int i = 1;
	    while( true ){
	    	String s = sc.next();
	    	int x = Integer.parseInt(s);
	    	if( x == 0 ){
	    		break;
	    	}
	    	System.out.println("Case " + i + ": " + x );
	    	i++;
	    }
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int i = 1; i 1 while( true ){
	    	String s = sc.next();
	    	int x = Integer.parseInt(s);
	    	if( x == 0 ){
	    		break;
	    	}
	    	System.out.println("Case " + i + ": " + x );
	    	i++;
	    } true {
	    	String s = sc.next();
	    	int x = Integer.parseInt(s);
	    	if( x == 0 ){
	    		break;
	    	}
	    	System.out.println("Case " + i + ": " + x );
	    	i++;
	    } String s = sc.next(); s sc.next() sc.next sc int x = Integer.parseInt(s); x Integer.parseInt(s) Integer.parseInt Integer s if( x == 0 ){
	    		break;
	    	} x == 0 x 0 {
	    		break;
	    	} break; System.out.println("Case " + i + ": " + x ) System.out.println System.out System System.out "Case " + i + ": " + x ": " "Case " + i + ": " + x "Case " i ": " x i++ i String args[] args
import java.util.Scanner;
import java.io.*;


class Main {
	public static void main(String args[]) {
	    Scanner sc = new Scanner(System.in);
	    int i = 1;
	    while( true ){
	    	String s = sc.next();
	    	int x = Integer.parseInt(s);
	    	if( x == 0 ){
	    		break;
	    	}
	    	System.out.println("Case " + i + ": " + x );
	    	i++;
	    }
	}
}