import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Here your code !
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        List<Integer> ary = new ArrayList<Integer>();
        while(true) {
            String t = br.readLine();
            if(new Integer(t) == 0)
                break;
            ary.add(new Integer(t));
        }
        for(int i=0;i < ary.size();i++) {
            System.out.println("Case " + (i+1) + ":" + " " + ary.get(i));
        }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        // Here your code !
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        List<Integer> ary = new ArrayList<Integer>();
        while(true) {
            String t = br.readLine();
            if(new Integer(t) == 0)
                break;
            ary.add(new Integer(t));
        }
        for(int i=0;i < ary.size();i++) {
            System.out.println("Case " + (i+1) + ":" + " " + ary.get(i));
        }
    }
} Main public static void main(String[] args) throws Exception {
        // Here your code !
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        List<Integer> ary = new ArrayList<Integer>();
        while(true) {
            String t = br.readLine();
            if(new Integer(t) == 0)
                break;
            ary.add(new Integer(t));
        }
        for(int i=0;i < ary.size();i++) {
            System.out.println("Case " + (i+1) + ":" + " " + ary.get(i));
        }
    } main {
        // Here your code !
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        List<Integer> ary = new ArrayList<Integer>();
        while(true) {
            String t = br.readLine();
            if(new Integer(t) == 0)
                break;
            ary.add(new Integer(t));
        }
        for(int i=0;i < ary.size();i++) {
            System.out.println("Case " + (i+1) + ":" + " " + ary.get(i));
        }
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) List<Integer> ary = new ArrayList<Integer>(); ary new ArrayList<Integer>() while(true) {
            String t = br.readLine();
            if(new Integer(t) == 0)
                break;
            ary.add(new Integer(t));
        } true {
            String t = br.readLine();
            if(new Integer(t) == 0)
                break;
            ary.add(new Integer(t));
        } String t = br.readLine(); t br.readLine() br.readLine br if(new Integer(t) == 0)
                break; new Integer(t) == 0 new Integer(t) 0 break; ary.add(new Integer(t)) ary.add ary new Integer(t) for(int i=0;i < ary.size();i++) {
            System.out.println("Case " + (i+1) + ":" + " " + ary.get(i));
        } int i=0; int i=0; i 0 i < ary.size() i ary.size() ary.size ary i++ i++ i {
            System.out.println("Case " + (i+1) + ":" + " " + ary.get(i));
        } {
            System.out.println("Case " + (i+1) + ":" + " " + ary.get(i));
        } System.out.println("Case " + (i+1) + ":" + " " + ary.get(i)) System.out.println System.out System System.out "Case " + (i+1) + ":" + " " + ary.get(i) " " ":" "Case " + (i+1) + ":" + " " + ary.get(i) "Case " (i+1) i 1 ":" " " ary.get(i) ary.get ary i String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        // Here your code !
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        List<Integer> ary = new ArrayList<Integer>();
        while(true) {
            String t = br.readLine();
            if(new Integer(t) == 0)
                break;
            ary.add(new Integer(t));
        }
        for(int i=0;i < ary.size();i++) {
            System.out.println("Case " + (i+1) + ":" + " " + ary.get(i));
        }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        // Here your code !
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        List<Integer> ary = new ArrayList<Integer>();
        while(true) {
            String t = br.readLine();
            if(new Integer(t) == 0)
                break;
            ary.add(new Integer(t));
        }
        for(int i=0;i < ary.size();i++) {
            System.out.println("Case " + (i+1) + ":" + " " + ary.get(i));
        }
    }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Here your code !
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        List<Integer> ary = new ArrayList<Integer>();
        while(true) {
            String t = br.readLine();
            if(new Integer(t) == 0)
                break;
            ary.add(new Integer(t));
        }
        for(int i=0;i < ary.size();i++) {
            System.out.println("Case " + (i+1) + ":" + " " + ary.get(i));
        }
    }
}