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

class Main
{
    public static void main(String[] args)
    {
	Scanner sc = new Scanner(System.in);

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

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

	int n = sc.nextInt();
	int i = 1;
	while (n != 0) {
	    System.out.println("Case " + i++ + ": " + n);
	    n = sc.nextInt();
	}
    } main {
	Scanner sc = new Scanner(System.in);

	int n = sc.nextInt();
	int i = 1;
	while (n != 0) {
	    System.out.println("Case " + i++ + ": " + n);
	    n = sc.nextInt();
	}
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int i = 1; i 1 while (n != 0) {
	    System.out.println("Case " + i++ + ": " + n);
	    n = sc.nextInt();
	} n != 0 n 0 {
	    System.out.println("Case " + i++ + ": " + n);
	    n = sc.nextInt();
	} System.out.println("Case " + i++ + ": " + n) System.out.println System.out System System.out "Case " + i++ + ": " + n ": " "Case " + i++ + ": " + n "Case " i++ i ": " n n = sc.nextInt() n sc.nextInt() sc.nextInt sc String[] args args
import java.io.*;
import java.util.*;

class Main
{
    public static void main(String[] args)
    {
	Scanner sc = new Scanner(System.in);

	int n = sc.nextInt();
	int i = 1;
	while (n != 0) {
	    System.out.println("Case " + i++ + ": " + n);
	    n = sc.nextInt();
	}
    }
}