import java.util.*;

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

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