import java.util.*;

public class Main{
  public static void main(String[] args){
	Scanner sc = new Scanner(System.in);

	int i;

	for(i=1;i<10001;i++){
	int a = sc.nextInt();

	  if(a == 0) break;

	  System.out.println("Case "+i+": "+a);
	}

  }
} import java.util.*; util.* java public class Main{
  public static void main(String[] args){
	Scanner sc = new Scanner(System.in);

	int i;

	for(i=1;i<10001;i++){
	int a = sc.nextInt();

	  if(a == 0) break;

	  System.out.println("Case "+i+": "+a);
	}

  }
} Main public static void main(String[] args){
	Scanner sc = new Scanner(System.in);

	int i;

	for(i=1;i<10001;i++){
	int a = sc.nextInt();

	  if(a == 0) break;

	  System.out.println("Case "+i+": "+a);
	}

  } main {
	Scanner sc = new Scanner(System.in);

	int i;

	for(i=1;i<10001;i++){
	int a = sc.nextInt();

	  if(a == 0) break;

	  System.out.println("Case "+i+": "+a);
	}

  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int i; i for(i=1;i<10001;i++){
	int a = sc.nextInt();

	  if(a == 0) break;

	  System.out.println("Case "+i+": "+a);
	} i=1; i=1 i 1 i<10001 i 10001 i++ i++ i {
	int a = sc.nextInt();

	  if(a == 0) break;

	  System.out.println("Case "+i+": "+a);
	} {
	int a = sc.nextInt();

	  if(a == 0) break;

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

	int i;

	for(i=1;i<10001;i++){
	int a = sc.nextInt();

	  if(a == 0) break;

	  System.out.println("Case "+i+": "+a);
	}

  }
} public class Main{
  public static void main(String[] args){
	Scanner sc = new Scanner(System.in);

	int i;

	for(i=1;i<10001;i++){
	int a = sc.nextInt();

	  if(a == 0) break;

	  System.out.println("Case "+i+": "+a);
	}

  }
} Main
import java.util.*;

public class Main{
  public static void main(String[] args){
	Scanner sc = new Scanner(System.in);

	int i;

	for(i=1;i<10001;i++){
	int a = sc.nextInt();

	  if(a == 0) break;

	  System.out.println("Case "+i+": "+a);
	}

  }
}