import java.util.Scanner;

class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    int i = 1;
    while (true) {
      int x = scanner.nextInt();
      if (x == 0) break;
      System.out.println("Case " + i + ": " + x);
      i += 1;
    }
  }
} import java.util.Scanner; Scanner java.util class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    int i = 1;
    while (true) {
      int x = scanner.nextInt();
      if (x == 0) break;
      System.out.println("Case " + i + ": " + x);
      i += 1;
    }
  }
} Main public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    int i = 1;
    while (true) {
      int x = scanner.nextInt();
      if (x == 0) break;
      System.out.println("Case " + i + ": " + x);
      i += 1;
    }
  } main {
    Scanner scanner = new Scanner(System.in);
    int i = 1;
    while (true) {
      int x = scanner.nextInt();
      if (x == 0) break;
      System.out.println("Case " + i + ": " + x);
      i += 1;
    }
  } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int i = 1; i 1 while (true) {
      int x = scanner.nextInt();
      if (x == 0) break;
      System.out.println("Case " + i + ": " + x);
      i += 1;
    } true {
      int x = scanner.nextInt();
      if (x == 0) break;
      System.out.println("Case " + i + ": " + x);
      i += 1;
    } int x = scanner.nextInt(); x scanner.nextInt() scanner.nextInt scanner if (x == 0) break; x == 0 x 0 break; System.out.println("Case " + i + ": " + x) System.out.println System.out System System.out "Case " + i + ": " + x ": " "Case " + i + ": " + x "Case " i ": " x i += 1 i 1 String[] args args
import java.util.Scanner;

class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    int i = 1;
    while (true) {
      int x = scanner.nextInt();
      if (x == 0) break;
      System.out.println("Case " + i + ": " + x);
      i += 1;
    }
  }
}