import java.io.IOException;
import java.util.Scanner;
public class Main {
    public static void main (String args[]) throws IOException {
    	Scanner sc = new Scanner(System.in);
    	int count=1;
    	StringBuilder sb = new StringBuilder();
    	while(true){
    	    //int a = Integer.parseInt(sc.nextLine());
    	    int a = sc.nextInt();
    		if(a == 0){
    	    	break;
    	    }
             String b = Integer.toString(a);
             sb.append("Case ").append(Integer.toString(count++)).append(": ").append(b).append("\n");

    	}
    	System.out.print(sb);
    }
} import java.io.IOException; IOException java.io import java.util.Scanner; Scanner java.util public class Main {
    public static void main (String args[]) throws IOException {
    	Scanner sc = new Scanner(System.in);
    	int count=1;
    	StringBuilder sb = new StringBuilder();
    	while(true){
    	    //int a = Integer.parseInt(sc.nextLine());
    	    int a = sc.nextInt();
    		if(a == 0){
    	    	break;
    	    }
             String b = Integer.toString(a);
             sb.append("Case ").append(Integer.toString(count++)).append(": ").append(b).append("\n");

    	}
    	System.out.print(sb);
    }
} Main public static void main (String args[]) throws IOException {
    	Scanner sc = new Scanner(System.in);
    	int count=1;
    	StringBuilder sb = new StringBuilder();
    	while(true){
    	    //int a = Integer.parseInt(sc.nextLine());
    	    int a = sc.nextInt();
    		if(a == 0){
    	    	break;
    	    }
             String b = Integer.toString(a);
             sb.append("Case ").append(Integer.toString(count++)).append(": ").append(b).append("\n");

    	}
    	System.out.print(sb);
    } main {
    	Scanner sc = new Scanner(System.in);
    	int count=1;
    	StringBuilder sb = new StringBuilder();
    	while(true){
    	    //int a = Integer.parseInt(sc.nextLine());
    	    int a = sc.nextInt();
    		if(a == 0){
    	    	break;
    	    }
             String b = Integer.toString(a);
             sb.append("Case ").append(Integer.toString(count++)).append(": ").append(b).append("\n");

    	}
    	System.out.print(sb);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int count=1; count 1 StringBuilder sb = new StringBuilder(); sb new StringBuilder() while(true){
    	    //int a = Integer.parseInt(sc.nextLine());
    	    int a = sc.nextInt();
    		if(a == 0){
    	    	break;
    	    }
             String b = Integer.toString(a);
             sb.append("Case ").append(Integer.toString(count++)).append(": ").append(b).append("\n");

    	} true {
    	    //int a = Integer.parseInt(sc.nextLine());
    	    int a = sc.nextInt();
    		if(a == 0){
    	    	break;
    	    }
             String b = Integer.toString(a);
             sb.append("Case ").append(Integer.toString(count++)).append(": ").append(b).append("\n");

    	} int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc if(a == 0){
    	    	break;
    	    } a == 0 a 0 {
    	    	break;
    	    } break; String b = Integer.toString(a); b Integer.toString(a) Integer.toString Integer a sb.append("Case ").append(Integer.toString(count++)).append(": ").append(b).append("\n") sb.append("Case ").append(Integer.toString(count++)).append(": ").append(b).append sb.append("Case ").append(Integer.toString(count++)).append(": ").append(b) sb.append("Case ").append(Integer.toString(count++)).append(": ").append sb.append("Case ").append(Integer.toString(count++)).append(": ") sb.append("Case ").append(Integer.toString(count++)).append sb.append("Case ").append(Integer.toString(count++)) sb.append("Case ").append sb.append("Case ") sb.append sb "Case " Integer.toString(count++) Integer.toString Integer count++ count ": " b "\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[]) throws IOException {
    	Scanner sc = new Scanner(System.in);
    	int count=1;
    	StringBuilder sb = new StringBuilder();
    	while(true){
    	    //int a = Integer.parseInt(sc.nextLine());
    	    int a = sc.nextInt();
    		if(a == 0){
    	    	break;
    	    }
             String b = Integer.toString(a);
             sb.append("Case ").append(Integer.toString(count++)).append(": ").append(b).append("\n");

    	}
    	System.out.print(sb);
    }
} public class Main {
    public static void main (String args[]) throws IOException {
    	Scanner sc = new Scanner(System.in);
    	int count=1;
    	StringBuilder sb = new StringBuilder();
    	while(true){
    	    //int a = Integer.parseInt(sc.nextLine());
    	    int a = sc.nextInt();
    		if(a == 0){
    	    	break;
    	    }
             String b = Integer.toString(a);
             sb.append("Case ").append(Integer.toString(count++)).append(": ").append(b).append("\n");

    	}
    	System.out.print(sb);
    }
} Main
import java.io.IOException;
import java.util.Scanner;
public class Main {
    public static void main (String args[]) throws IOException {
    	Scanner sc = new Scanner(System.in);
    	int count=1;
    	StringBuilder sb = new StringBuilder();
    	while(true){
    	    //int a = Integer.parseInt(sc.nextLine());
    	    int a = sc.nextInt();
    		if(a == 0){
    	    	break;
    	    }
             String b = Integer.toString(a);
             sb.append("Case ").append(Integer.toString(count++)).append(": ").append(b).append("\n");

    	}
    	System.out.print(sb);
    }
}