import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main{
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        
        int cycle = 0;
        String line;
        while(!((line = br.readLine()).equals("0"))) 
            System.out.println("Case " + ++cycle + ": " + line);
    }
} import java.io.IOException; IOException java.io import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main{
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        
        int cycle = 0;
        String line;
        while(!((line = br.readLine()).equals("0"))) 
            System.out.println("Case " + ++cycle + ": " + line);
    }
} Main public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        
        int cycle = 0;
        String line;
        while(!((line = br.readLine()).equals("0"))) 
            System.out.println("Case " + ++cycle + ": " + line);
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        
        int cycle = 0;
        String line;
        while(!((line = br.readLine()).equals("0"))) 
            System.out.println("Case " + ++cycle + ": " + line);
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int cycle = 0; cycle 0 String line; line while(!((line = br.readLine()).equals("0"))) 
            System.out.println("Case " + ++cycle + ": " + line); !((line = br.readLine()).equals("0")) ((line = br.readLine()).equals("0")) (line = br.readLine()).equals (line = br.readLine()) line br.readLine() br.readLine br "0" System.out.println("Case " + ++cycle + ": " + line) System.out.println System.out System System.out "Case " + ++cycle + ": " + line ": " "Case " + ++cycle + ": " + line "Case " ++cycle cycle ": " line String[] args args public class Main{
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        
        int cycle = 0;
        String line;
        while(!((line = br.readLine()).equals("0"))) 
            System.out.println("Case " + ++cycle + ": " + line);
    }
} public class Main{
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        
        int cycle = 0;
        String line;
        while(!((line = br.readLine()).equals("0"))) 
            System.out.println("Case " + ++cycle + ": " + line);
    }
} Main
import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main{
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        
        int cycle = 0;
        String line;
        while(!((line = br.readLine()).equals("0"))) 
            System.out.println("Case " + ++cycle + ": " + line);
    }
}