import java.util.*;
  
class Main{
  public static void main(String[] args){
    Scanner stdId = new Scanner(System.in);
    int x = stdId.nextInt(); 
    for(int i=1;;i++){
      if(x==0) break;
      System.out.println("Case " + i + ": " + x);
      x = stdId.nextInt();
    }
  }
} import java.util.*; util.* java class Main{
  public static void main(String[] args){
    Scanner stdId = new Scanner(System.in);
    int x = stdId.nextInt(); 
    for(int i=1;;i++){
      if(x==0) break;
      System.out.println("Case " + i + ": " + x);
      x = stdId.nextInt();
    }
  }
} Main public static void main(String[] args){
    Scanner stdId = new Scanner(System.in);
    int x = stdId.nextInt(); 
    for(int i=1;;i++){
      if(x==0) break;
      System.out.println("Case " + i + ": " + x);
      x = stdId.nextInt();
    }
  } main {
    Scanner stdId = new Scanner(System.in);
    int x = stdId.nextInt(); 
    for(int i=1;;i++){
      if(x==0) break;
      System.out.println("Case " + i + ": " + x);
      x = stdId.nextInt();
    }
  } Scanner stdId = new Scanner(System.in); stdId new Scanner(System.in) int x = stdId.nextInt(); x stdId.nextInt() stdId.nextInt stdId for(int i=1;;i++){
      if(x==0) break;
      System.out.println("Case " + i + ": " + x);
      x = stdId.nextInt();
    } int i=1; int i=1; i 1 i++ i++ i {
      if(x==0) break;
      System.out.println("Case " + i + ": " + x);
      x = stdId.nextInt();
    } {
      if(x==0) break;
      System.out.println("Case " + i + ": " + x);
      x = stdId.nextInt();
    } if(x==0) break; x==0 x 0 break; System.out.println("Case " + i + ": " + x) System.out.println System.out System System.out "Case " + i + ": " + x ": " "Case " + i + ": " + x "Case " i ": " x x = stdId.nextInt() x stdId.nextInt() stdId.nextInt stdId String[] args args
import java.util.*;
  
class Main{
  public static void main(String[] args){
    Scanner stdId = new Scanner(System.in);
    int x = stdId.nextInt(); 
    for(int i=1;;i++){
      if(x==0) break;
      System.out.println("Case " + i + ": " + x);
      x = stdId.nextInt();
    }
  }
}