import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner scanner = new Scanner(System.in);
    ArrayList<Integer> n = new ArrayList<Integer>();

    while(scanner.hasNextInt()){
      int x = scanner.nextInt();
      if(x == 0){
        break;
      }
      n.add(x);
    }
    for (int i = 0; i < n.size(); i++){
      System.out.println("Case " + (i + 1) + ": " + n.get(i));
    }
  }
} import java.util.*; util.* java public class Main{
  public static void main(String[] args){
    Scanner scanner = new Scanner(System.in);
    ArrayList<Integer> n = new ArrayList<Integer>();

    while(scanner.hasNextInt()){
      int x = scanner.nextInt();
      if(x == 0){
        break;
      }
      n.add(x);
    }
    for (int i = 0; i < n.size(); i++){
      System.out.println("Case " + (i + 1) + ": " + n.get(i));
    }
  }
} Main public static void main(String[] args){
    Scanner scanner = new Scanner(System.in);
    ArrayList<Integer> n = new ArrayList<Integer>();

    while(scanner.hasNextInt()){
      int x = scanner.nextInt();
      if(x == 0){
        break;
      }
      n.add(x);
    }
    for (int i = 0; i < n.size(); i++){
      System.out.println("Case " + (i + 1) + ": " + n.get(i));
    }
  } main {
    Scanner scanner = new Scanner(System.in);
    ArrayList<Integer> n = new ArrayList<Integer>();

    while(scanner.hasNextInt()){
      int x = scanner.nextInt();
      if(x == 0){
        break;
      }
      n.add(x);
    }
    for (int i = 0; i < n.size(); i++){
      System.out.println("Case " + (i + 1) + ": " + n.get(i));
    }
  } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) ArrayList<Integer> n = new ArrayList<Integer>(); n new ArrayList<Integer>() while(scanner.hasNextInt()){
      int x = scanner.nextInt();
      if(x == 0){
        break;
      }
      n.add(x);
    } scanner.hasNextInt() scanner.hasNextInt scanner {
      int x = scanner.nextInt();
      if(x == 0){
        break;
      }
      n.add(x);
    } int x = scanner.nextInt(); x scanner.nextInt() scanner.nextInt scanner if(x == 0){
        break;
      } x == 0 x 0 {
        break;
      } break; n.add(x) n.add n x for (int i = 0; i < n.size(); i++){
      System.out.println("Case " + (i + 1) + ": " + n.get(i));
    } int i = 0; int i = 0; i 0 i < n.size() i n.size() n.size n i++ i++ i {
      System.out.println("Case " + (i + 1) + ": " + n.get(i));
    } {
      System.out.println("Case " + (i + 1) + ": " + n.get(i));
    } System.out.println("Case " + (i + 1) + ": " + n.get(i)) System.out.println System.out System System.out "Case " + (i + 1) + ": " + n.get(i) ": " "Case " + (i + 1) + ": " + n.get(i) "Case " (i + 1) i 1 ": " n.get(i) n.get n i String[] args args public class Main{
  public static void main(String[] args){
    Scanner scanner = new Scanner(System.in);
    ArrayList<Integer> n = new ArrayList<Integer>();

    while(scanner.hasNextInt()){
      int x = scanner.nextInt();
      if(x == 0){
        break;
      }
      n.add(x);
    }
    for (int i = 0; i < n.size(); i++){
      System.out.println("Case " + (i + 1) + ": " + n.get(i));
    }
  }
} public class Main{
  public static void main(String[] args){
    Scanner scanner = new Scanner(System.in);
    ArrayList<Integer> n = new ArrayList<Integer>();

    while(scanner.hasNextInt()){
      int x = scanner.nextInt();
      if(x == 0){
        break;
      }
      n.add(x);
    }
    for (int i = 0; i < n.size(); i++){
      System.out.println("Case " + (i + 1) + ": " + n.get(i));
    }
  }
} Main
import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner scanner = new Scanner(System.in);
    ArrayList<Integer> n = new ArrayList<Integer>();

    while(scanner.hasNextInt()){
      int x = scanner.nextInt();
      if(x == 0){
        break;
      }
      n.add(x);
    }
    for (int i = 0; i < n.size(); i++){
      System.out.println("Case " + (i + 1) + ": " + n.get(i));
    }
  }
}