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