import java.lang.Math;
import java.util.ArrayList;
import java.util.Scanner;

class Main {
    public static void main(String[] args) {
        Scanner sn = new Scanner(System.in);
        int i = 1;
        while (sn.hasNext()) {
            int n = sn.nextInt();
            if (n == 0) {
                break;
            }
            System.out.println(String.format("Case %d: %d", i, n));
            i++;
        }
    }
} import java.lang.Math; Math java.lang import java.util.ArrayList; ArrayList java.util import java.util.Scanner; Scanner java.util class Main {
    public static void main(String[] args) {
        Scanner sn = new Scanner(System.in);
        int i = 1;
        while (sn.hasNext()) {
            int n = sn.nextInt();
            if (n == 0) {
                break;
            }
            System.out.println(String.format("Case %d: %d", i, n));
            i++;
        }
    }
} Main public static void main(String[] args) {
        Scanner sn = new Scanner(System.in);
        int i = 1;
        while (sn.hasNext()) {
            int n = sn.nextInt();
            if (n == 0) {
                break;
            }
            System.out.println(String.format("Case %d: %d", i, n));
            i++;
        }
    } main {
        Scanner sn = new Scanner(System.in);
        int i = 1;
        while (sn.hasNext()) {
            int n = sn.nextInt();
            if (n == 0) {
                break;
            }
            System.out.println(String.format("Case %d: %d", i, n));
            i++;
        }
    } Scanner sn = new Scanner(System.in); sn new Scanner(System.in) int i = 1; i 1 while (sn.hasNext()) {
            int n = sn.nextInt();
            if (n == 0) {
                break;
            }
            System.out.println(String.format("Case %d: %d", i, n));
            i++;
        } sn.hasNext() sn.hasNext sn {
            int n = sn.nextInt();
            if (n == 0) {
                break;
            }
            System.out.println(String.format("Case %d: %d", i, n));
            i++;
        } int n = sn.nextInt(); n sn.nextInt() sn.nextInt sn if (n == 0) {
                break;
            } n == 0 n 0 {
                break;
            } break; System.out.println(String.format("Case %d: %d", i, n)) System.out.println System.out System System.out String.format("Case %d: %d", i, n) String.format String "Case %d: %d" i n i++ i String[] args args
import java.lang.Math;
import java.util.ArrayList;
import java.util.Scanner;

class Main {
    public static void main(String[] args) {
        Scanner sn = new Scanner(System.in);
        int i = 1;
        while (sn.hasNext()) {
            int n = sn.nextInt();
            if (n == 0) {
                break;
            }
            System.out.println(String.format("Case %d: %d", i, n));
            i++;
        }
    }
}