import java.io.*;

class Main {

   public static void main(String[] args) throws Exception {
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      int x = Integer.valueOf(br.readLine()).intValue();
      int i = 1;
      while (x != 0) {
         System.out.println("Case " + i + ": " + x);
         i++;
         x = Integer.valueOf(br.readLine()).intValue();
      }
   }
} import java.io.*; io.* java class Main {

   public static void main(String[] args) throws Exception {
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      int x = Integer.valueOf(br.readLine()).intValue();
      int i = 1;
      while (x != 0) {
         System.out.println("Case " + i + ": " + x);
         i++;
         x = Integer.valueOf(br.readLine()).intValue();
      }
   }
} Main public static void main(String[] args) throws Exception {
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      int x = Integer.valueOf(br.readLine()).intValue();
      int i = 1;
      while (x != 0) {
         System.out.println("Case " + i + ": " + x);
         i++;
         x = Integer.valueOf(br.readLine()).intValue();
      }
   } main {
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      int x = Integer.valueOf(br.readLine()).intValue();
      int i = 1;
      while (x != 0) {
         System.out.println("Case " + i + ": " + x);
         i++;
         x = Integer.valueOf(br.readLine()).intValue();
      }
   } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int x = Integer.valueOf(br.readLine()).intValue(); x Integer.valueOf(br.readLine()).intValue() Integer.valueOf(br.readLine()).intValue Integer.valueOf(br.readLine()) Integer.valueOf Integer br.readLine() br.readLine br int i = 1; i 1 while (x != 0) {
         System.out.println("Case " + i + ": " + x);
         i++;
         x = Integer.valueOf(br.readLine()).intValue();
      } x != 0 x 0 {
         System.out.println("Case " + i + ": " + x);
         i++;
         x = Integer.valueOf(br.readLine()).intValue();
      } System.out.println("Case " + i + ": " + x) System.out.println System.out System System.out "Case " + i + ": " + x ": " "Case " + i + ": " + x "Case " i ": " x i++ i x = Integer.valueOf(br.readLine()).intValue() x Integer.valueOf(br.readLine()).intValue() Integer.valueOf(br.readLine()).intValue Integer.valueOf(br.readLine()) Integer.valueOf Integer br.readLine() br.readLine br String[] args args
import java.io.*;

class Main {

   public static void main(String[] args) throws Exception {
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      int x = Integer.valueOf(br.readLine()).intValue();
      int i = 1;
      while (x != 0) {
         System.out.println("Case " + i + ": " + x);
         i++;
         x = Integer.valueOf(br.readLine()).intValue();
      }
   }
}