import java.util.*;
public class Main {
    public static void main(String[] args){
        Scanner sca=new Scanner(System.in);
        String num[]=new String[10001];
        for(int i=0;;i++){
            num[i] =sca.next();
            if(num[i].equals("0"))break;
        }
        for(int i=1;;i++){
            if(num[i-1].equals("0"))break;
            System.out.println("Case "+i+": "+num[i-1]);
        }         
    }   
} import java.util.*; util.* java public class Main {
    public static void main(String[] args){
        Scanner sca=new Scanner(System.in);
        String num[]=new String[10001];
        for(int i=0;;i++){
            num[i] =sca.next();
            if(num[i].equals("0"))break;
        }
        for(int i=1;;i++){
            if(num[i-1].equals("0"))break;
            System.out.println("Case "+i+": "+num[i-1]);
        }         
    }   
} Main public static void main(String[] args){
        Scanner sca=new Scanner(System.in);
        String num[]=new String[10001];
        for(int i=0;;i++){
            num[i] =sca.next();
            if(num[i].equals("0"))break;
        }
        for(int i=1;;i++){
            if(num[i-1].equals("0"))break;
            System.out.println("Case "+i+": "+num[i-1]);
        }         
    } main {
        Scanner sca=new Scanner(System.in);
        String num[]=new String[10001];
        for(int i=0;;i++){
            num[i] =sca.next();
            if(num[i].equals("0"))break;
        }
        for(int i=1;;i++){
            if(num[i-1].equals("0"))break;
            System.out.println("Case "+i+": "+num[i-1]);
        }         
    } Scanner sca=new Scanner(System.in); sca new Scanner(System.in) String num[]=new String[10001]; num new String[10001] 10001 for(int i=0;;i++){
            num[i] =sca.next();
            if(num[i].equals("0"))break;
        } int i=0; int i=0; i 0 i++ i++ i {
            num[i] =sca.next();
            if(num[i].equals("0"))break;
        } {
            num[i] =sca.next();
            if(num[i].equals("0"))break;
        } num[i] =sca.next() num[i] num i sca.next() sca.next sca if(num[i].equals("0"))break; num[i].equals("0") num[i].equals num[i] num i "0" break; for(int i=1;;i++){
            if(num[i-1].equals("0"))break;
            System.out.println("Case "+i+": "+num[i-1]);
        } int i=1; int i=1; i 1 i++ i++ i {
            if(num[i-1].equals("0"))break;
            System.out.println("Case "+i+": "+num[i-1]);
        } {
            if(num[i-1].equals("0"))break;
            System.out.println("Case "+i+": "+num[i-1]);
        } if(num[i-1].equals("0"))break; num[i-1].equals("0") num[i-1].equals num[i-1] num i-1 i 1 "0" break; System.out.println("Case "+i+": "+num[i-1]) System.out.println System.out System System.out "Case "+i+": "+num[i-1] ": " "Case "+i+": "+num[i-1] "Case " i ": " num[i-1] num i-1 i 1 String[] args args public class Main {
    public static void main(String[] args){
        Scanner sca=new Scanner(System.in);
        String num[]=new String[10001];
        for(int i=0;;i++){
            num[i] =sca.next();
            if(num[i].equals("0"))break;
        }
        for(int i=1;;i++){
            if(num[i-1].equals("0"))break;
            System.out.println("Case "+i+": "+num[i-1]);
        }         
    }   
} public class Main {
    public static void main(String[] args){
        Scanner sca=new Scanner(System.in);
        String num[]=new String[10001];
        for(int i=0;;i++){
            num[i] =sca.next();
            if(num[i].equals("0"))break;
        }
        for(int i=1;;i++){
            if(num[i-1].equals("0"))break;
            System.out.println("Case "+i+": "+num[i-1]);
        }         
    }   
} Main
import java.util.*;
public class Main {
    public static void main(String[] args){
        Scanner sca=new Scanner(System.in);
        String num[]=new String[10001];
        for(int i=0;;i++){
            num[i] =sca.next();
            if(num[i].equals("0"))break;
        }
        for(int i=1;;i++){
            if(num[i-1].equals("0"))break;
            System.out.println("Case "+i+": "+num[i-1]);
        }         
    }   
}