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