import java.util.Scanner;


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

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

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

} main {
Scanner sc = new Scanner(System.in);
for(int i=1; i<=10000;i++)
{
int a= sc.nextInt();
if(a==0) break;
System.out.println("Case " + i + ": "+ a);
}

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

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

}
} Main
import java.util.Scanner;


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

}
}
