import java.io.IOException;
import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
      Scanner sc = new Scanner(System.in);
      int x,y;
      x = 1;
      y = 1;
      while(x != 0){
    	x = sc.nextInt();
    	if(x!=0){
    		System.out.println("Case "+y+": "+x);
    	}
    	y = y+1;
      }
	}

} import java.io.IOException; IOException java.io import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
      Scanner sc = new Scanner(System.in);
      int x,y;
      x = 1;
      y = 1;
      while(x != 0){
    	x = sc.nextInt();
    	if(x!=0){
    		System.out.println("Case "+y+": "+x);
    	}
    	y = y+1;
      }
	}

} Main public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
      Scanner sc = new Scanner(System.in);
      int x,y;
      x = 1;
      y = 1;
      while(x != 0){
    	x = sc.nextInt();
    	if(x!=0){
    		System.out.println("Case "+y+": "+x);
    	}
    	y = y+1;
      }
	} main {
		// TODO ?????????????????????????????????????????????
      Scanner sc = new Scanner(System.in);
      int x,y;
      x = 1;
      y = 1;
      while(x != 0){
    	x = sc.nextInt();
    	if(x!=0){
    		System.out.println("Case "+y+": "+x);
    	}
    	y = y+1;
      }
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int x x y; y x = 1 x 1 y = 1 y 1 while(x != 0){
    	x = sc.nextInt();
    	if(x!=0){
    		System.out.println("Case "+y+": "+x);
    	}
    	y = y+1;
      } x != 0 x 0 {
    	x = sc.nextInt();
    	if(x!=0){
    		System.out.println("Case "+y+": "+x);
    	}
    	y = y+1;
      } x = sc.nextInt() x sc.nextInt() sc.nextInt sc if(x!=0){
    		System.out.println("Case "+y+": "+x);
    	} x!=0 x 0 {
    		System.out.println("Case "+y+": "+x);
    	} System.out.println("Case "+y+": "+x) System.out.println System.out System System.out "Case "+y+": "+x ": " "Case "+y+": "+x "Case " y ": " x y = y+1 y y+1 y 1 String[] args args public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
      Scanner sc = new Scanner(System.in);
      int x,y;
      x = 1;
      y = 1;
      while(x != 0){
    	x = sc.nextInt();
    	if(x!=0){
    		System.out.println("Case "+y+": "+x);
    	}
    	y = y+1;
      }
	}

} public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
      Scanner sc = new Scanner(System.in);
      int x,y;
      x = 1;
      y = 1;
      while(x != 0){
    	x = sc.nextInt();
    	if(x!=0){
    		System.out.println("Case "+y+": "+x);
    	}
    	y = y+1;
      }
	}

} Main
import java.io.IOException;
import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
      Scanner sc = new Scanner(System.in);
      int x,y;
      x = 1;
      y = 1;
      while(x != 0){
    	x = sc.nextInt();
    	if(x!=0){
    		System.out.println("Case "+y+": "+x);
    	}
    	y = y+1;
      }
	}

}