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

