public class Main{
  public void run(java.io.InputStream in,java.io.PrintStream out){
    java.util.Scanner sc = new java.util.Scanner(in);
/*????????§Input*/
    int i, n;
    for(i = 1;;++i){
      n = sc.nextInt();
      if(n != 0){
        System.out.println("Case " + i + ": " + n);
      }else{
        break;
      }
    }
    sc.close();
/*answer*/
/*???????????±?????????????????\???????????????????????????????????????????????????????????¨??????*/

  }
  public static void main(String[] args){
    (new Main()).run(System.in,System.out);
  }
} public class Main{
  public void run(java.io.InputStream in,java.io.PrintStream out){
    java.util.Scanner sc = new java.util.Scanner(in);
/*????????§Input*/
    int i, n;
    for(i = 1;;++i){
      n = sc.nextInt();
      if(n != 0){
        System.out.println("Case " + i + ": " + n);
      }else{
        break;
      }
    }
    sc.close();
/*answer*/
/*???????????±?????????????????\???????????????????????????????????????????????????????????¨??????*/

  }
  public static void main(String[] args){
    (new Main()).run(System.in,System.out);
  }
} Main public void run(java.io.InputStream in,java.io.PrintStream out){
    java.util.Scanner sc = new java.util.Scanner(in);
/*????????§Input*/
    int i, n;
    for(i = 1;;++i){
      n = sc.nextInt();
      if(n != 0){
        System.out.println("Case " + i + ": " + n);
      }else{
        break;
      }
    }
    sc.close();
/*answer*/
/*???????????±?????????????????\???????????????????????????????????????????????????????????¨??????*/

  } run {
    java.util.Scanner sc = new java.util.Scanner(in);
/*????????§Input*/
    int i, n;
    for(i = 1;;++i){
      n = sc.nextInt();
      if(n != 0){
        System.out.println("Case " + i + ": " + n);
      }else{
        break;
      }
    }
    sc.close();
/*answer*/
/*???????????±?????????????????\???????????????????????????????????????????????????????????¨??????*/

  } java.util.Scanner sc = new java.util.Scanner(in); sc new java.util.Scanner(in) int i i n; n for(i = 1;;++i){
      n = sc.nextInt();
      if(n != 0){
        System.out.println("Case " + i + ": " + n);
      }else{
        break;
      }
    } i = 1; i = 1 i 1 ++i ++i i {
      n = sc.nextInt();
      if(n != 0){
        System.out.println("Case " + i + ": " + n);
      }else{
        break;
      }
    } {
      n = sc.nextInt();
      if(n != 0){
        System.out.println("Case " + i + ": " + n);
      }else{
        break;
      }
    } n = sc.nextInt() n sc.nextInt() sc.nextInt sc if(n != 0){
        System.out.println("Case " + i + ": " + n);
      }else{
        break;
      } n != 0 n 0 {
        System.out.println("Case " + i + ": " + n);
      } System.out.println("Case " + i + ": " + n) System.out.println System.out System System.out "Case " + i + ": " + n ": " "Case " + i + ": " + n "Case " i ": " n {
        break;
      } break; sc.close() sc.close sc java.io.InputStream in in java.io.PrintStream out out public static void main(String[] args){
    (new Main()).run(System.in,System.out);
  } main {
    (new Main()).run(System.in,System.out);
  } (new Main()).run(System.in,System.out) (new Main()).run (new Main()) System.in System System.in System.out System System.out String[] args args public class Main{
  public void run(java.io.InputStream in,java.io.PrintStream out){
    java.util.Scanner sc = new java.util.Scanner(in);
/*????????§Input*/
    int i, n;
    for(i = 1;;++i){
      n = sc.nextInt();
      if(n != 0){
        System.out.println("Case " + i + ": " + n);
      }else{
        break;
      }
    }
    sc.close();
/*answer*/
/*???????????±?????????????????\???????????????????????????????????????????????????????????¨??????*/

  }
  public static void main(String[] args){
    (new Main()).run(System.in,System.out);
  }
} public class Main{
  public void run(java.io.InputStream in,java.io.PrintStream out){
    java.util.Scanner sc = new java.util.Scanner(in);
/*????????§Input*/
    int i, n;
    for(i = 1;;++i){
      n = sc.nextInt();
      if(n != 0){
        System.out.println("Case " + i + ": " + n);
      }else{
        break;
      }
    }
    sc.close();
/*answer*/
/*???????????±?????????????????\???????????????????????????????????????????????????????????¨??????*/

  }
  public static void main(String[] args){
    (new Main()).run(System.in,System.out);
  }
} Main
public class Main{
  public void run(java.io.InputStream in,java.io.PrintStream out){
    java.util.Scanner sc = new java.util.Scanner(in);
/*????????§Input*/
    int i, n;
    for(i = 1;;++i){
      n = sc.nextInt();
      if(n != 0){
        System.out.println("Case " + i + ": " + n);
      }else{
        break;
      }
    }
    sc.close();
/*answer*/
/*???????????±?????????????????\???????????????????????????????????????????????????????????¨??????*/

  }
  public static void main(String[] args){
    (new Main()).run(System.in,System.out);
  }
}