import java.io.*;

public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = null;
        for (int i = 1; (str = br.readLine()) != null; i++) {
            if (str.equals("0")) break;
            System.out.println("Case " + i + ": " + str);
    }
  }
} import java.io.*; io.* java public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = null;
        for (int i = 1; (str = br.readLine()) != null; i++) {
            if (str.equals("0")) break;
            System.out.println("Case " + i + ": " + str);
    }
  }
} Main public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = null;
        for (int i = 1; (str = br.readLine()) != null; i++) {
            if (str.equals("0")) break;
            System.out.println("Case " + i + ": " + str);
    }
  } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = null;
        for (int i = 1; (str = br.readLine()) != null; i++) {
            if (str.equals("0")) break;
            System.out.println("Case " + i + ": " + str);
    }
  } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str = null; str null for (int i = 1; (str = br.readLine()) != null; i++) {
            if (str.equals("0")) break;
            System.out.println("Case " + i + ": " + str);
    } int i = 1; int i = 1; i 1 (str = br.readLine()) != null (str = br.readLine()) str br.readLine() br.readLine br null i++ i++ i {
            if (str.equals("0")) break;
            System.out.println("Case " + i + ": " + str);
    } {
            if (str.equals("0")) break;
            System.out.println("Case " + i + ": " + str);
    } if (str.equals("0")) break; str.equals("0") str.equals str "0" break; System.out.println("Case " + i + ": " + str) System.out.println System.out System System.out "Case " + i + ": " + str ": " "Case " + i + ": " + str "Case " i ": " str String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = null;
        for (int i = 1; (str = br.readLine()) != null; i++) {
            if (str.equals("0")) break;
            System.out.println("Case " + i + ": " + str);
    }
  }
} public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = null;
        for (int i = 1; (str = br.readLine()) != null; i++) {
            if (str.equals("0")) break;
            System.out.println("Case " + i + ": " + str);
    }
  }
} Main
import java.io.*;

public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = null;
        for (int i = 1; (str = br.readLine()) != null; i++) {
            if (str.equals("0")) break;
            System.out.println("Case " + i + ": " + str);
    }
  }
}