import java.util.ArrayList;
import java.util.Scanner;

/**
 * Created 2017/06/01.
 */
  public class Main {
    public static void main(String[] args) {
      //??\?????¨?????????
      Scanner sc = new Scanner(System.in);
      ArrayList<Integer> ary = new ArrayList<>();

      while (true) {
        int input = Integer.parseInt(sc.next());
        ary.add(input);
        if (input == 0)break;
      }

      for(int i = 0; i < ary.size()-1; i++){
        System.out.println("Case " + (i+1) + ": " +ary.get(i));
      }

    }
  } import java.util.ArrayList; ArrayList java.util import java.util.Scanner; Scanner java.util   public class Main {
    public static void main(String[] args) {
      //??\?????¨?????????
      Scanner sc = new Scanner(System.in);
      ArrayList<Integer> ary = new ArrayList<>();

      while (true) {
        int input = Integer.parseInt(sc.next());
        ary.add(input);
        if (input == 0)break;
      }

      for(int i = 0; i < ary.size()-1; i++){
        System.out.println("Case " + (i+1) + ": " +ary.get(i));
      }

    }
  } Main public static void main(String[] args) {
      //??\?????¨?????????
      Scanner sc = new Scanner(System.in);
      ArrayList<Integer> ary = new ArrayList<>();

      while (true) {
        int input = Integer.parseInt(sc.next());
        ary.add(input);
        if (input == 0)break;
      }

      for(int i = 0; i < ary.size()-1; i++){
        System.out.println("Case " + (i+1) + ": " +ary.get(i));
      }

    } main {
      //??\?????¨?????????
      Scanner sc = new Scanner(System.in);
      ArrayList<Integer> ary = new ArrayList<>();

      while (true) {
        int input = Integer.parseInt(sc.next());
        ary.add(input);
        if (input == 0)break;
      }

      for(int i = 0; i < ary.size()-1; i++){
        System.out.println("Case " + (i+1) + ": " +ary.get(i));
      }

    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) ArrayList<Integer> ary = new ArrayList<>(); ary new ArrayList<>() while (true) {
        int input = Integer.parseInt(sc.next());
        ary.add(input);
        if (input == 0)break;
      } true {
        int input = Integer.parseInt(sc.next());
        ary.add(input);
        if (input == 0)break;
      } int input = Integer.parseInt(sc.next()); input Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc ary.add(input) ary.add ary input if (input == 0)break; input == 0 input 0 break; for(int i = 0; i < ary.size()-1; i++){
        System.out.println("Case " + (i+1) + ": " +ary.get(i));
      } int i = 0; int i = 0; i 0 i < ary.size()-1 i ary.size()-1 ary.size() ary.size ary 1 i++ i++ i {
        System.out.println("Case " + (i+1) + ": " +ary.get(i));
      } {
        System.out.println("Case " + (i+1) + ": " +ary.get(i));
      } System.out.println("Case " + (i+1) + ": " +ary.get(i)) System.out.println System.out System System.out "Case " + (i+1) + ": " +ary.get(i) ": " "Case " + (i+1) + ": " +ary.get(i) "Case " (i+1) i 1 ": " ary.get(i) ary.get ary i String[] args args   public class Main {
    public static void main(String[] args) {
      //??\?????¨?????????
      Scanner sc = new Scanner(System.in);
      ArrayList<Integer> ary = new ArrayList<>();

      while (true) {
        int input = Integer.parseInt(sc.next());
        ary.add(input);
        if (input == 0)break;
      }

      for(int i = 0; i < ary.size()-1; i++){
        System.out.println("Case " + (i+1) + ": " +ary.get(i));
      }

    }
  }   public class Main {
    public static void main(String[] args) {
      //??\?????¨?????????
      Scanner sc = new Scanner(System.in);
      ArrayList<Integer> ary = new ArrayList<>();

      while (true) {
        int input = Integer.parseInt(sc.next());
        ary.add(input);
        if (input == 0)break;
      }

      for(int i = 0; i < ary.size()-1; i++){
        System.out.println("Case " + (i+1) + ": " +ary.get(i));
      }

    }
  } Main
import java.util.ArrayList;
import java.util.Scanner;

/**
 * Created 2017/06/01.
 */
  public class Main {
    public static void main(String[] args) {
      //??\?????¨?????????
      Scanner sc = new Scanner(System.in);
      ArrayList<Integer> ary = new ArrayList<>();

      while (true) {
        int input = Integer.parseInt(sc.next());
        ary.add(input);
        if (input == 0)break;
      }

      for(int i = 0; i < ary.size()-1; i++){
        System.out.println("Case " + (i+1) + ": " +ary.get(i));
      }

    }
  }