import java.io.*;
public class Main{
    public static void main(String args[]){
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        int i=0;
        String[] line;
        line = new String[10000];
        try{
        while(i<10000){
            line[i] = reader.readLine();
            if(line[i].equals("0"))  break;
            i++;
        }
        i=0;
        while(i<10000){
            if(line[i].equals("0"))  break;
            System.out.println("Case "+(i+1)+": "+line[i]);
            i++;
        }
    }catch(IOException e){
        System.out.println(e);
    }catch(NumberFormatException e){
        System.out.println(e);
    }
    }
} import java.io.*; io.* java public class Main{
    public static void main(String args[]){
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        int i=0;
        String[] line;
        line = new String[10000];
        try{
        while(i<10000){
            line[i] = reader.readLine();
            if(line[i].equals("0"))  break;
            i++;
        }
        i=0;
        while(i<10000){
            if(line[i].equals("0"))  break;
            System.out.println("Case "+(i+1)+": "+line[i]);
            i++;
        }
    }catch(IOException e){
        System.out.println(e);
    }catch(NumberFormatException e){
        System.out.println(e);
    }
    }
} Main public static void main(String args[]){
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        int i=0;
        String[] line;
        line = new String[10000];
        try{
        while(i<10000){
            line[i] = reader.readLine();
            if(line[i].equals("0"))  break;
            i++;
        }
        i=0;
        while(i<10000){
            if(line[i].equals("0"))  break;
            System.out.println("Case "+(i+1)+": "+line[i]);
            i++;
        }
    }catch(IOException e){
        System.out.println(e);
    }catch(NumberFormatException e){
        System.out.println(e);
    }
    } main {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        int i=0;
        String[] line;
        line = new String[10000];
        try{
        while(i<10000){
            line[i] = reader.readLine();
            if(line[i].equals("0"))  break;
            i++;
        }
        i=0;
        while(i<10000){
            if(line[i].equals("0"))  break;
            System.out.println("Case "+(i+1)+": "+line[i]);
            i++;
        }
    }catch(IOException e){
        System.out.println(e);
    }catch(NumberFormatException e){
        System.out.println(e);
    }
    } BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) int i=0; i 0 String[] line; line line = new String[10000] line new String[10000] 10000 try{
        while(i<10000){
            line[i] = reader.readLine();
            if(line[i].equals("0"))  break;
            i++;
        }
        i=0;
        while(i<10000){
            if(line[i].equals("0"))  break;
            System.out.println("Case "+(i+1)+": "+line[i]);
            i++;
        }
    }catch(IOException e){
        System.out.println(e);
    }catch(NumberFormatException e){
        System.out.println(e);
    } catch(IOException e){
        System.out.println(e);
    } IOException e {
        System.out.println(e);
    } System.out.println(e) System.out.println System.out System System.out e catch(NumberFormatException e){
        System.out.println(e);
    } NumberFormatException e {
        System.out.println(e);
    } System.out.println(e) System.out.println System.out System System.out e {
        while(i<10000){
            line[i] = reader.readLine();
            if(line[i].equals("0"))  break;
            i++;
        }
        i=0;
        while(i<10000){
            if(line[i].equals("0"))  break;
            System.out.println("Case "+(i+1)+": "+line[i]);
            i++;
        }
    } while(i<10000){
            line[i] = reader.readLine();
            if(line[i].equals("0"))  break;
            i++;
        } i<10000 i 10000 {
            line[i] = reader.readLine();
            if(line[i].equals("0"))  break;
            i++;
        } line[i] = reader.readLine() line[i] line i reader.readLine() reader.readLine reader if(line[i].equals("0"))  break; line[i].equals("0") line[i].equals line[i] line i "0" break; i++ i i=0 i 0 while(i<10000){
            if(line[i].equals("0"))  break;
            System.out.println("Case "+(i+1)+": "+line[i]);
            i++;
        } i<10000 i 10000 {
            if(line[i].equals("0"))  break;
            System.out.println("Case "+(i+1)+": "+line[i]);
            i++;
        } if(line[i].equals("0"))  break; line[i].equals("0") line[i].equals line[i] line i "0" break; System.out.println("Case "+(i+1)+": "+line[i]) System.out.println System.out System System.out "Case "+(i+1)+": "+line[i] ": " "Case "+(i+1)+": "+line[i] "Case " (i+1) i 1 ": " line[i] line i i++ i String args[] args public class Main{
    public static void main(String args[]){
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        int i=0;
        String[] line;
        line = new String[10000];
        try{
        while(i<10000){
            line[i] = reader.readLine();
            if(line[i].equals("0"))  break;
            i++;
        }
        i=0;
        while(i<10000){
            if(line[i].equals("0"))  break;
            System.out.println("Case "+(i+1)+": "+line[i]);
            i++;
        }
    }catch(IOException e){
        System.out.println(e);
    }catch(NumberFormatException e){
        System.out.println(e);
    }
    }
} public class Main{
    public static void main(String args[]){
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        int i=0;
        String[] line;
        line = new String[10000];
        try{
        while(i<10000){
            line[i] = reader.readLine();
            if(line[i].equals("0"))  break;
            i++;
        }
        i=0;
        while(i<10000){
            if(line[i].equals("0"))  break;
            System.out.println("Case "+(i+1)+": "+line[i]);
            i++;
        }
    }catch(IOException e){
        System.out.println(e);
    }catch(NumberFormatException e){
        System.out.println(e);
    }
    }
} Main
import java.io.*;
public class Main{
    public static void main(String args[]){
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        int i=0;
        String[] line;
        line = new String[10000];
        try{
        while(i<10000){
            line[i] = reader.readLine();
            if(line[i].equals("0"))  break;
            i++;
        }
        i=0;
        while(i<10000){
            if(line[i].equals("0"))  break;
            System.out.println("Case "+(i+1)+": "+line[i]);
            i++;
        }
    }catch(IOException e){
        System.out.println(e);
    }catch(NumberFormatException e){
        System.out.println(e);
    }
    }
}
