import java.util.Scanner;

class Main{
    public static void main(String[] a){
    	int c, no=0;
    	Scanner in = new Scanner(System.in);
      while (true){
      	c = in.nextInt();
      	if(c == 0) break;
      	no++;
        System.out.println("Case " + no + ": " + c);
      }
    }
} import java.util.Scanner; Scanner java.util class Main{
    public static void main(String[] a){
    	int c, no=0;
    	Scanner in = new Scanner(System.in);
      while (true){
      	c = in.nextInt();
      	if(c == 0) break;
      	no++;
        System.out.println("Case " + no + ": " + c);
      }
    }
} Main public static void main(String[] a){
    	int c, no=0;
    	Scanner in = new Scanner(System.in);
      while (true){
      	c = in.nextInt();
      	if(c == 0) break;
      	no++;
        System.out.println("Case " + no + ": " + c);
      }
    } main {
    	int c, no=0;
    	Scanner in = new Scanner(System.in);
      while (true){
      	c = in.nextInt();
      	if(c == 0) break;
      	no++;
        System.out.println("Case " + no + ": " + c);
      }
    } int c c no=0; no 0 Scanner in = new Scanner(System.in); in new Scanner(System.in) while (true){
      	c = in.nextInt();
      	if(c == 0) break;
      	no++;
        System.out.println("Case " + no + ": " + c);
      } true {
      	c = in.nextInt();
      	if(c == 0) break;
      	no++;
        System.out.println("Case " + no + ": " + c);
      } c = in.nextInt() c in.nextInt() in.nextInt in if(c == 0) break; c == 0 c 0 break; no++ no System.out.println("Case " + no + ": " + c) System.out.println System.out System System.out "Case " + no + ": " + c ": " "Case " + no + ": " + c "Case " no ": " c String[] a a
import java.util.Scanner;

class Main{
    public static void main(String[] a){
    	int c, no=0;
    	Scanner in = new Scanner(System.in);
      while (true){
      	c = in.nextInt();
      	if(c == 0) break;
      	no++;
        System.out.println("Case " + no + ": " + c);
      }
    }
}