import java.util.Scanner;


public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int x=5;
         int i=1;
        while(x!=0){
          
            x= scanner .nextInt();
            if(x==0){
                break;
            }
            System.out.println("Case "+i+": "+x);
              i++;
            
        }
    }

} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int x=5;
         int i=1;
        while(x!=0){
          
            x= scanner .nextInt();
            if(x==0){
                break;
            }
            System.out.println("Case "+i+": "+x);
              i++;
            
        }
    }

} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int x=5;
         int i=1;
        while(x!=0){
          
            x= scanner .nextInt();
            if(x==0){
                break;
            }
            System.out.println("Case "+i+": "+x);
              i++;
            
        }
    } main {
        Scanner scanner = new Scanner(System.in);
        int x=5;
         int i=1;
        while(x!=0){
          
            x= scanner .nextInt();
            if(x==0){
                break;
            }
            System.out.println("Case "+i+": "+x);
              i++;
            
        }
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int x=5; x 5 int i=1; i 1 while(x!=0){
          
            x= scanner .nextInt();
            if(x==0){
                break;
            }
            System.out.println("Case "+i+": "+x);
              i++;
            
        } x!=0 x 0 {
          
            x= scanner .nextInt();
            if(x==0){
                break;
            }
            System.out.println("Case "+i+": "+x);
              i++;
            
        } x= scanner .nextInt() x scanner .nextInt() scanner .nextInt scanner 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 i++ i String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int x=5;
         int i=1;
        while(x!=0){
          
            x= scanner .nextInt();
            if(x==0){
                break;
            }
            System.out.println("Case "+i+": "+x);
              i++;
            
        }
    }

} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int x=5;
         int i=1;
        while(x!=0){
          
            x= scanner .nextInt();
            if(x==0){
                break;
            }
            System.out.println("Case "+i+": "+x);
              i++;
            
        }
    }

} Main
import java.util.Scanner;


public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int x=5;
         int i=1;
        while(x!=0){
          
            x= scanner .nextInt();
            if(x==0){
                break;
            }
            System.out.println("Case "+i+": "+x);
              i++;
            
        }
    }

}