import java.util.Scanner;

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

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