import java.util.Scanner;

class Main{
  public static void main(String[] args){
    Scanner stdIn = new Scanner(System.in);
    int i = 0,j;
    int num[] = new int[100000];
    while(true){
      num[i] = stdIn.nextInt();
      if(num[i] == 0){
        break;
      }
      i++;
    }


    for(j = 0;j < i;j++){
      System.out.println("Case " + (j + 1) + ": " + num[j]);
    }
  }
} import java.util.Scanner; Scanner java.util class Main{
  public static void main(String[] args){
    Scanner stdIn = new Scanner(System.in);
    int i = 0,j;
    int num[] = new int[100000];
    while(true){
      num[i] = stdIn.nextInt();
      if(num[i] == 0){
        break;
      }
      i++;
    }


    for(j = 0;j < i;j++){
      System.out.println("Case " + (j + 1) + ": " + num[j]);
    }
  }
} Main public static void main(String[] args){
    Scanner stdIn = new Scanner(System.in);
    int i = 0,j;
    int num[] = new int[100000];
    while(true){
      num[i] = stdIn.nextInt();
      if(num[i] == 0){
        break;
      }
      i++;
    }


    for(j = 0;j < i;j++){
      System.out.println("Case " + (j + 1) + ": " + num[j]);
    }
  } main {
    Scanner stdIn = new Scanner(System.in);
    int i = 0,j;
    int num[] = new int[100000];
    while(true){
      num[i] = stdIn.nextInt();
      if(num[i] == 0){
        break;
      }
      i++;
    }


    for(j = 0;j < i;j++){
      System.out.println("Case " + (j + 1) + ": " + num[j]);
    }
  } Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int i = 0 i 0 j; j int num[] = new int[100000]; num new int[100000] 100000 while(true){
      num[i] = stdIn.nextInt();
      if(num[i] == 0){
        break;
      }
      i++;
    } true {
      num[i] = stdIn.nextInt();
      if(num[i] == 0){
        break;
      }
      i++;
    } num[i] = stdIn.nextInt() num[i] num i stdIn.nextInt() stdIn.nextInt stdIn if(num[i] == 0){
        break;
      } num[i] == 0 num[i] num i 0 {
        break;
      } break; i++ i for(j = 0;j < i;j++){
      System.out.println("Case " + (j + 1) + ": " + num[j]);
    } j = 0; j = 0 j 0 j < i j i j++ j++ j {
      System.out.println("Case " + (j + 1) + ": " + num[j]);
    } {
      System.out.println("Case " + (j + 1) + ": " + num[j]);
    } System.out.println("Case " + (j + 1) + ": " + num[j]) System.out.println System.out System System.out "Case " + (j + 1) + ": " + num[j] ": " "Case " + (j + 1) + ": " + num[j] "Case " (j + 1) j 1 ": " num[j] num j String[] args args
import java.util.Scanner;

class Main{
  public static void main(String[] args){
    Scanner stdIn = new Scanner(System.in);
    int i = 0,j;
    int num[] = new int[100000];
    while(true){
      num[i] = stdIn.nextInt();
      if(num[i] == 0){
        break;
      }
      i++;
    }


    for(j = 0;j < i;j++){
      System.out.println("Case " + (j + 1) + ": " + num[j]);
    }
  }
}