import java.io.*;
import java.util.*;
class Main{
    public static void main(String args[])throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb = new StringBuilder();
        int i=1;
        while(true){
            int x = Integer.parseInt(br.readLine());
            if(x == 0) break;
            sb.append("Case");
            sb.append(" ");
            sb.append(Integer.toString(i++));
            sb.append(":");
            sb.append(" ");
            sb.append(Integer.toString(x));
            sb.append("\n");
        }
        System.out.print(sb);
    }
} 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));
        StringBuilder sb = new StringBuilder();
        int i=1;
        while(true){
            int x = Integer.parseInt(br.readLine());
            if(x == 0) break;
            sb.append("Case");
            sb.append(" ");
            sb.append(Integer.toString(i++));
            sb.append(":");
            sb.append(" ");
            sb.append(Integer.toString(x));
            sb.append("\n");
        }
        System.out.print(sb);
    }
} Main public static void main(String args[])throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb = new StringBuilder();
        int i=1;
        while(true){
            int x = Integer.parseInt(br.readLine());
            if(x == 0) break;
            sb.append("Case");
            sb.append(" ");
            sb.append(Integer.toString(i++));
            sb.append(":");
            sb.append(" ");
            sb.append(Integer.toString(x));
            sb.append("\n");
        }
        System.out.print(sb);
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb = new StringBuilder();
        int i=1;
        while(true){
            int x = Integer.parseInt(br.readLine());
            if(x == 0) break;
            sb.append("Case");
            sb.append(" ");
            sb.append(Integer.toString(i++));
            sb.append(":");
            sb.append(" ");
            sb.append(Integer.toString(x));
            sb.append("\n");
        }
        System.out.print(sb);
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) StringBuilder sb = new StringBuilder(); sb new StringBuilder() int i=1; i 1 while(true){
            int x = Integer.parseInt(br.readLine());
            if(x == 0) break;
            sb.append("Case");
            sb.append(" ");
            sb.append(Integer.toString(i++));
            sb.append(":");
            sb.append(" ");
            sb.append(Integer.toString(x));
            sb.append("\n");
        } true {
            int x = Integer.parseInt(br.readLine());
            if(x == 0) break;
            sb.append("Case");
            sb.append(" ");
            sb.append(Integer.toString(i++));
            sb.append(":");
            sb.append(" ");
            sb.append(Integer.toString(x));
            sb.append("\n");
        } int x = Integer.parseInt(br.readLine()); x Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br if(x == 0) break; x == 0 x 0 break; sb.append("Case") sb.append sb "Case" sb.append(" ") sb.append sb " " sb.append(Integer.toString(i++)) sb.append sb Integer.toString(i++) Integer.toString Integer i++ i sb.append(":") sb.append sb ":" sb.append(" ") sb.append sb " " sb.append(Integer.toString(x)) sb.append sb Integer.toString(x) Integer.toString Integer x sb.append("\n") sb.append sb "\n" System.out.print(sb) System.out.print System.out System System.out sb 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));
        StringBuilder sb = new StringBuilder();
        int i=1;
        while(true){
            int x = Integer.parseInt(br.readLine());
            if(x == 0) break;
            sb.append("Case");
            sb.append(" ");
            sb.append(Integer.toString(i++));
            sb.append(":");
            sb.append(" ");
            sb.append(Integer.toString(x));
            sb.append("\n");
        }
        System.out.print(sb);
    }
}