import java.util.*;                                                                                  

public class Main {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        for(int i = 1; i <= 10000; i++) {
          String line = sc.nextLine();
          int x = Integer.parseInt(line);

          if(x == 0) {
            break;
          }   

          System.out.println("Case " + i + ": " + x); 
        }   
    }   
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        for(int i = 1; i <= 10000; i++) {
          String line = sc.nextLine();
          int x = Integer.parseInt(line);

          if(x == 0) {
            break;
          }   

          System.out.println("Case " + i + ": " + x); 
        }   
    }   
} Main public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        for(int i = 1; i <= 10000; i++) {
          String line = sc.nextLine();
          int x = Integer.parseInt(line);

          if(x == 0) {
            break;
          }   

          System.out.println("Case " + i + ": " + x); 
        }   
    } main {

        Scanner sc = new Scanner(System.in);

        for(int i = 1; i <= 10000; i++) {
          String line = sc.nextLine();
          int x = Integer.parseInt(line);

          if(x == 0) {
            break;
          }   

          System.out.println("Case " + i + ": " + x); 
        }   
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) for(int i = 1; i <= 10000; i++) {
          String line = sc.nextLine();
          int x = Integer.parseInt(line);

          if(x == 0) {
            break;
          }   

          System.out.println("Case " + i + ": " + x); 
        } int i = 1; int i = 1; i 1 i <= 10000 i 10000 i++ i++ i {
          String line = sc.nextLine();
          int x = Integer.parseInt(line);

          if(x == 0) {
            break;
          }   

          System.out.println("Case " + i + ": " + x); 
        } {
          String line = sc.nextLine();
          int x = Integer.parseInt(line);

          if(x == 0) {
            break;
          }   

          System.out.println("Case " + i + ": " + x); 
        } String line = sc.nextLine(); line sc.nextLine() sc.nextLine sc int x = Integer.parseInt(line); x Integer.parseInt(line) Integer.parseInt Integer line if(x == 0) {
            break;
          } x == 0 x 0 {
            break;
          } break; System.out.println("Case " + i + ": " + x) System.out.println System.out System System.out "Case " + i + ": " + x ": " "Case " + i + ": " + x "Case " i ": " x String[] args args public class Main {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        for(int i = 1; i <= 10000; i++) {
          String line = sc.nextLine();
          int x = Integer.parseInt(line);

          if(x == 0) {
            break;
          }   

          System.out.println("Case " + i + ": " + x); 
        }   
    }   
} public class Main {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        for(int i = 1; i <= 10000; i++) {
          String line = sc.nextLine();
          int x = Integer.parseInt(line);

          if(x == 0) {
            break;
          }   

          System.out.println("Case " + i + ": " + x); 
        }   
    }   
} Main
import java.util.*;                                                                                  

public class Main {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        for(int i = 1; i <= 10000; i++) {
          String line = sc.nextLine();
          int x = Integer.parseInt(line);

          if(x == 0) {
            break;
          }   

          System.out.println("Case " + i + ": " + x); 
        }   
    }   
}