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