import java.io.*;
import java.util.*;

public class Main
{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		int[] x;
		x = new int[100000];
		int i=0,j;
		while(true)
		{
			x[i] = sc.nextInt();
			if(x[i]==0)break;
			i++;
		}
		for(j=0;j<i;j++)
		{
			System.out.printf("Case %d: %d\n",j+1,x[j]);
		}
	}
} import java.io.*; io.* java import java.util.*; util.* java public class Main
{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		int[] x;
		x = new int[100000];
		int i=0,j;
		while(true)
		{
			x[i] = sc.nextInt();
			if(x[i]==0)break;
			i++;
		}
		for(j=0;j<i;j++)
		{
			System.out.printf("Case %d: %d\n",j+1,x[j]);
		}
	}
} Main public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		int[] x;
		x = new int[100000];
		int i=0,j;
		while(true)
		{
			x[i] = sc.nextInt();
			if(x[i]==0)break;
			i++;
		}
		for(j=0;j<i;j++)
		{
			System.out.printf("Case %d: %d\n",j+1,x[j]);
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int[] x;
		x = new int[100000];
		int i=0,j;
		while(true)
		{
			x[i] = sc.nextInt();
			if(x[i]==0)break;
			i++;
		}
		for(j=0;j<i;j++)
		{
			System.out.printf("Case %d: %d\n",j+1,x[j]);
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int[] x; x x = new int[100000] x new int[100000] 100000 int i=0 i 0 j; j while(true)
		{
			x[i] = sc.nextInt();
			if(x[i]==0)break;
			i++;
		} true {
			x[i] = sc.nextInt();
			if(x[i]==0)break;
			i++;
		} x[i] = sc.nextInt() x[i] x i sc.nextInt() sc.nextInt sc if(x[i]==0)break; x[i]==0 x[i] x i 0 break; i++ i for(j=0;j<i;j++)
		{
			System.out.printf("Case %d: %d\n",j+1,x[j]);
		} j=0; j=0 j 0 j<i j i j++ j++ j {
			System.out.printf("Case %d: %d\n",j+1,x[j]);
		} {
			System.out.printf("Case %d: %d\n",j+1,x[j]);
		} System.out.printf("Case %d: %d\n",j+1,x[j]) System.out.printf System.out System System.out "Case %d: %d\n" j+1 j 1 x[j] x j String[] args args public class Main
{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		int[] x;
		x = new int[100000];
		int i=0,j;
		while(true)
		{
			x[i] = sc.nextInt();
			if(x[i]==0)break;
			i++;
		}
		for(j=0;j<i;j++)
		{
			System.out.printf("Case %d: %d\n",j+1,x[j]);
		}
	}
} public class Main
{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		int[] x;
		x = new int[100000];
		int i=0,j;
		while(true)
		{
			x[i] = sc.nextInt();
			if(x[i]==0)break;
			i++;
		}
		for(j=0;j<i;j++)
		{
			System.out.printf("Case %d: %d\n",j+1,x[j]);
		}
	}
} Main
import java.io.*;
import java.util.*;

public class Main
{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		int[] x;
		x = new int[100000];
		int i=0,j;
		while(true)
		{
			x[i] = sc.nextInt();
			if(x[i]==0)break;
			i++;
		}
		for(j=0;j<i;j++)
		{
			System.out.printf("Case %d: %d\n",j+1,x[j]);
		}
	}
}