import java.io.*;
import java.util.*;
class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        int count=0;
        int n;
        while(true){
            count++;
            n=Integer.parseInt(br.readLine());
            if(n==0) break;
            System.out.println("Case "+count+": "+n);
        }
    }
} import java.io.*; io.* java import java.util.*; util.* java class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        int count=0;
        int n;
        while(true){
            count++;
            n=Integer.parseInt(br.readLine());
            if(n==0) break;
            System.out.println("Case "+count+": "+n);
        }
    }
} Main public static void main(String[] args) throws IOException {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        int count=0;
        int n;
        while(true){
            count++;
            n=Integer.parseInt(br.readLine());
            if(n==0) break;
            System.out.println("Case "+count+": "+n);
        }
    } main {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        int count=0;
        int n;
        while(true){
            count++;
            n=Integer.parseInt(br.readLine());
            if(n==0) break;
            System.out.println("Case "+count+": "+n);
        }
    } BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int count=0; count 0 int n; n while(true){
            count++;
            n=Integer.parseInt(br.readLine());
            if(n==0) break;
            System.out.println("Case "+count+": "+n);
        } true {
            count++;
            n=Integer.parseInt(br.readLine());
            if(n==0) break;
            System.out.println("Case "+count+": "+n);
        } count++ count n=Integer.parseInt(br.readLine()) n Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br if(n==0) break; n==0 n 0 break; System.out.println("Case "+count+": "+n) System.out.println System.out System System.out "Case "+count+": "+n ": " "Case "+count+": "+n "Case " count ": " n String[] args args
import java.io.*;
import java.util.*;
class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        int count=0;
        int n;
        while(true){
            count++;
            n=Integer.parseInt(br.readLine());
            if(n==0) break;
            System.out.println("Case "+count+": "+n);
        }
    }
}