import java.util.Scanner;                                                               
 
class Main {
    public static void main(String[] args) {
            Scanner in = new Scanner(System.in);
            String str = new String();
            StringBuilder sb = new StringBuilder();
            int i =0 ;
            while(in.hasNext()) {
                        String buf = in.nextLine();
                    i++;
                    int j = Integer.parseInt(buf);
                    if (j == 0){
                    break;
                    }else{
                    sb.append("Case" + " " + i  + ":" + " " +  buf + "\n");
                    }

                    }
            System.out.print(sb);
        }
} import java.util.Scanner; Scanner java.util class Main {
    public static void main(String[] args) {
            Scanner in = new Scanner(System.in);
            String str = new String();
            StringBuilder sb = new StringBuilder();
            int i =0 ;
            while(in.hasNext()) {
                        String buf = in.nextLine();
                    i++;
                    int j = Integer.parseInt(buf);
                    if (j == 0){
                    break;
                    }else{
                    sb.append("Case" + " " + i  + ":" + " " +  buf + "\n");
                    }

                    }
            System.out.print(sb);
        }
} Main public static void main(String[] args) {
            Scanner in = new Scanner(System.in);
            String str = new String();
            StringBuilder sb = new StringBuilder();
            int i =0 ;
            while(in.hasNext()) {
                        String buf = in.nextLine();
                    i++;
                    int j = Integer.parseInt(buf);
                    if (j == 0){
                    break;
                    }else{
                    sb.append("Case" + " " + i  + ":" + " " +  buf + "\n");
                    }

                    }
            System.out.print(sb);
        } main {
            Scanner in = new Scanner(System.in);
            String str = new String();
            StringBuilder sb = new StringBuilder();
            int i =0 ;
            while(in.hasNext()) {
                        String buf = in.nextLine();
                    i++;
                    int j = Integer.parseInt(buf);
                    if (j == 0){
                    break;
                    }else{
                    sb.append("Case" + " " + i  + ":" + " " +  buf + "\n");
                    }

                    }
            System.out.print(sb);
        } Scanner in = new Scanner(System.in); in new Scanner(System.in) String str = new String(); str new String() StringBuilder sb = new StringBuilder(); sb new StringBuilder() int i =0 ; i 0 while(in.hasNext()) {
                        String buf = in.nextLine();
                    i++;
                    int j = Integer.parseInt(buf);
                    if (j == 0){
                    break;
                    }else{
                    sb.append("Case" + " " + i  + ":" + " " +  buf + "\n");
                    }

                    } in.hasNext() in.hasNext in {
                        String buf = in.nextLine();
                    i++;
                    int j = Integer.parseInt(buf);
                    if (j == 0){
                    break;
                    }else{
                    sb.append("Case" + " " + i  + ":" + " " +  buf + "\n");
                    }

                    } String buf = in.nextLine(); buf in.nextLine() in.nextLine in i++ i int j = Integer.parseInt(buf); j Integer.parseInt(buf) Integer.parseInt Integer buf if (j == 0){
                    break;
                    }else{
                    sb.append("Case" + " " + i  + ":" + " " +  buf + "\n");
                    } j == 0 j 0 {
                    break;
                    } break; {
                    sb.append("Case" + " " + i  + ":" + " " +  buf + "\n");
                    } sb.append("Case" + " " + i  + ":" + " " +  buf + "\n") sb.append sb "Case" + " " + i  + ":" + " " +  buf + "\n" buf " " ":" i "Case" + " " + i  + ":" + " " +  buf + "\n" "Case" " " i ":" " " buf "\n" System.out.print(sb) System.out.print System.out System System.out sb String[] args args
import java.util.Scanner;                                                               
 
class Main {
    public static void main(String[] args) {
            Scanner in = new Scanner(System.in);
            String str = new String();
            StringBuilder sb = new StringBuilder();
            int i =0 ;
            while(in.hasNext()) {
                        String buf = in.nextLine();
                    i++;
                    int j = Integer.parseInt(buf);
                    if (j == 0){
                    break;
                    }else{
                    sb.append("Case" + " " + i  + ":" + " " +  buf + "\n");
                    }

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