import java.io.*;
import java.util.*;

class Main {
    public static void main(String [] args){
        Scanner scan = new Scanner(System.in);
        int num = 1;
        
        while(true){
            int n = scan.nextInt();
            
            if(n == 0) {
            	break;
            	}
            
            System.out.println("Case " + num++ + ": " + n);
        }
    }
} import java.io.*; io.* java import java.util.*; util.* java class Main {
    public static void main(String [] args){
        Scanner scan = new Scanner(System.in);
        int num = 1;
        
        while(true){
            int n = scan.nextInt();
            
            if(n == 0) {
            	break;
            	}
            
            System.out.println("Case " + num++ + ": " + n);
        }
    }
} Main public static void main(String [] args){
        Scanner scan = new Scanner(System.in);
        int num = 1;
        
        while(true){
            int n = scan.nextInt();
            
            if(n == 0) {
            	break;
            	}
            
            System.out.println("Case " + num++ + ": " + n);
        }
    } main {
        Scanner scan = new Scanner(System.in);
        int num = 1;
        
        while(true){
            int n = scan.nextInt();
            
            if(n == 0) {
            	break;
            	}
            
            System.out.println("Case " + num++ + ": " + n);
        }
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int num = 1; num 1 while(true){
            int n = scan.nextInt();
            
            if(n == 0) {
            	break;
            	}
            
            System.out.println("Case " + num++ + ": " + n);
        } true {
            int n = scan.nextInt();
            
            if(n == 0) {
            	break;
            	}
            
            System.out.println("Case " + num++ + ": " + n);
        } int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan if(n == 0) {
            	break;
            	} n == 0 n 0 {
            	break;
            	} break; System.out.println("Case " + num++ + ": " + n) System.out.println System.out System System.out "Case " + num++ + ": " + n ": " "Case " + num++ + ": " + n "Case " num++ num ": " n String [] args args
import java.io.*;
import java.util.*;

class Main {
    public static void main(String [] args){
        Scanner scan = new Scanner(System.in);
        int num = 1;
        
        while(true){
            int n = scan.nextInt();
            
            if(n == 0) {
            	break;
            	}
            
            System.out.println("Case " + num++ + ": " + n);
        }
    }
}