import java.util.*;

public class Main {
	public static void main(String[] arg){
		Scanner in = new Scanner(System.in);
		int i = 1;
		while(in.hasNext()) {
            String buf = in.nextLine();
            if(Integer.parseInt(buf) == 0){
            	break;
			}
            System.out.println("Case "+ i +": "+ buf);
            i++;
        }
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] arg){
		Scanner in = new Scanner(System.in);
		int i = 1;
		while(in.hasNext()) {
            String buf = in.nextLine();
            if(Integer.parseInt(buf) == 0){
            	break;
			}
            System.out.println("Case "+ i +": "+ buf);
            i++;
        }
	}
} Main public static void main(String[] arg){
		Scanner in = new Scanner(System.in);
		int i = 1;
		while(in.hasNext()) {
            String buf = in.nextLine();
            if(Integer.parseInt(buf) == 0){
            	break;
			}
            System.out.println("Case "+ i +": "+ buf);
            i++;
        }
	} main {
		Scanner in = new Scanner(System.in);
		int i = 1;
		while(in.hasNext()) {
            String buf = in.nextLine();
            if(Integer.parseInt(buf) == 0){
            	break;
			}
            System.out.println("Case "+ i +": "+ buf);
            i++;
        }
	} Scanner in = new Scanner(System.in); in new Scanner(System.in) int i = 1; i 1 while(in.hasNext()) {
            String buf = in.nextLine();
            if(Integer.parseInt(buf) == 0){
            	break;
			}
            System.out.println("Case "+ i +": "+ buf);
            i++;
        } in.hasNext() in.hasNext in {
            String buf = in.nextLine();
            if(Integer.parseInt(buf) == 0){
            	break;
			}
            System.out.println("Case "+ i +": "+ buf);
            i++;
        } String buf = in.nextLine(); buf in.nextLine() in.nextLine in if(Integer.parseInt(buf) == 0){
            	break;
			} Integer.parseInt(buf) == 0 Integer.parseInt(buf) Integer.parseInt Integer buf 0 {
            	break;
			} break; System.out.println("Case "+ i +": "+ buf) System.out.println System.out System System.out "Case "+ i +": "+ buf ": " "Case "+ i +": "+ buf "Case " i ": " buf i++ i String[] arg arg public class Main {
	public static void main(String[] arg){
		Scanner in = new Scanner(System.in);
		int i = 1;
		while(in.hasNext()) {
            String buf = in.nextLine();
            if(Integer.parseInt(buf) == 0){
            	break;
			}
            System.out.println("Case "+ i +": "+ buf);
            i++;
        }
	}
} public class Main {
	public static void main(String[] arg){
		Scanner in = new Scanner(System.in);
		int i = 1;
		while(in.hasNext()) {
            String buf = in.nextLine();
            if(Integer.parseInt(buf) == 0){
            	break;
			}
            System.out.println("Case "+ i +": "+ buf);
            i++;
        }
	}
} Main
import java.util.*;

public class Main {
	public static void main(String[] arg){
		Scanner in = new Scanner(System.in);
		int i = 1;
		while(in.hasNext()) {
            String buf = in.nextLine();
            if(Integer.parseInt(buf) == 0){
            	break;
			}
            System.out.println("Case "+ i +": "+ buf);
            i++;
        }
	}
}