import java.util.Scanner;

public class Main {

    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int i = 1;
        while(sc.hasNextInt()){
            int n = sc.nextInt();
            if(n == 0) break;
            else System.out.printf("Case %d: %d\n",i++,n);
        }
        sc.close();
    }

} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int i = 1;
        while(sc.hasNextInt()){
            int n = sc.nextInt();
            if(n == 0) break;
            else System.out.printf("Case %d: %d\n",i++,n);
        }
        sc.close();
    }

} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int i = 1;
        while(sc.hasNextInt()){
            int n = sc.nextInt();
            if(n == 0) break;
            else System.out.printf("Case %d: %d\n",i++,n);
        }
        sc.close();
    } main {
        Scanner sc = new Scanner(System.in);
        int i = 1;
        while(sc.hasNextInt()){
            int n = sc.nextInt();
            if(n == 0) break;
            else System.out.printf("Case %d: %d\n",i++,n);
        }
        sc.close();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int i = 1; i 1 while(sc.hasNextInt()){
            int n = sc.nextInt();
            if(n == 0) break;
            else System.out.printf("Case %d: %d\n",i++,n);
        } sc.hasNextInt() sc.hasNextInt sc {
            int n = sc.nextInt();
            if(n == 0) break;
            else System.out.printf("Case %d: %d\n",i++,n);
        } int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc if(n == 0) break;
            else System.out.printf("Case %d: %d\n",i++,n); n == 0 n 0 break; System.out.printf("Case %d: %d\n",i++,n) System.out.printf System.out System System.out "Case %d: %d\n" i++ i n sc.close() sc.close sc String[] args args public class Main {

    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int i = 1;
        while(sc.hasNextInt()){
            int n = sc.nextInt();
            if(n == 0) break;
            else System.out.printf("Case %d: %d\n",i++,n);
        }
        sc.close();
    }

} public class Main {

    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int i = 1;
        while(sc.hasNextInt()){
            int n = sc.nextInt();
            if(n == 0) break;
            else System.out.printf("Case %d: %d\n",i++,n);
        }
        sc.close();
    }

} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int i = 1;
        while(sc.hasNextInt()){
            int n = sc.nextInt();
            if(n == 0) break;
            else System.out.printf("Case %d: %d\n",i++,n);
        }
        sc.close();
    }

}