import java.util.Scanner;
public class Main{

    int data,x;



    public void input(){
	Scanner scan = new Scanner(System.in);
	x = 1;
        while(true){
	    data = scan.nextInt();
	    if ( data == 0 ) break;
	    output();
	    x = x + 1;
	}
    }
    public void output(){
	System.out.println("Case "+x+":"+" "+data);
    }
    



    public static void main(String[] args){
	Main  p = new Main();
	p.input();
	//	p.output();
    }
}
  import java.util.Scanner; Scanner java.util public class Main{

    int data,x;



    public void input(){
	Scanner scan = new Scanner(System.in);
	x = 1;
        while(true){
	    data = scan.nextInt();
	    if ( data == 0 ) break;
	    output();
	    x = x + 1;
	}
    }
    public void output(){
	System.out.println("Case "+x+":"+" "+data);
    }
    



    public static void main(String[] args){
	Main  p = new Main();
	p.input();
	//	p.output();
    }
} Main int data data x; x public void input(){
	Scanner scan = new Scanner(System.in);
	x = 1;
        while(true){
	    data = scan.nextInt();
	    if ( data == 0 ) break;
	    output();
	    x = x + 1;
	}
    } input {
	Scanner scan = new Scanner(System.in);
	x = 1;
        while(true){
	    data = scan.nextInt();
	    if ( data == 0 ) break;
	    output();
	    x = x + 1;
	}
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) x = 1 x 1 while(true){
	    data = scan.nextInt();
	    if ( data == 0 ) break;
	    output();
	    x = x + 1;
	} true {
	    data = scan.nextInt();
	    if ( data == 0 ) break;
	    output();
	    x = x + 1;
	} data = scan.nextInt() data scan.nextInt() scan.nextInt scan if ( data == 0 ) break; data == 0 data 0 break; output() output x = x + 1 x x + 1 x 1 public void output(){
	System.out.println("Case "+x+":"+" "+data);
    } output {
	System.out.println("Case "+x+":"+" "+data);
    } System.out.println("Case "+x+":"+" "+data) System.out.println System.out System System.out "Case "+x+":"+" "+data " " ":" "Case "+x+":"+" "+data "Case " x ":" " " data public static void main(String[] args){
	Main  p = new Main();
	p.input();
	//	p.output();
    } main {
	Main  p = new Main();
	p.input();
	//	p.output();
    } Main  p = new Main(); p new Main() p.input() p.input p String[] args args public class Main{

    int data,x;



    public void input(){
	Scanner scan = new Scanner(System.in);
	x = 1;
        while(true){
	    data = scan.nextInt();
	    if ( data == 0 ) break;
	    output();
	    x = x + 1;
	}
    }
    public void output(){
	System.out.println("Case "+x+":"+" "+data);
    }
    



    public static void main(String[] args){
	Main  p = new Main();
	p.input();
	//	p.output();
    }
} public class Main{

    int data,x;



    public void input(){
	Scanner scan = new Scanner(System.in);
	x = 1;
        while(true){
	    data = scan.nextInt();
	    if ( data == 0 ) break;
	    output();
	    x = x + 1;
	}
    }
    public void output(){
	System.out.println("Case "+x+":"+" "+data);
    }
    



    public static void main(String[] args){
	Main  p = new Main();
	p.input();
	//	p.output();
    }
} Main
import java.util.Scanner;
public class Main{

    int data,x;



    public void input(){
	Scanner scan = new Scanner(System.in);
	x = 1;
        while(true){
	    data = scan.nextInt();
	    if ( data == 0 ) break;
	    output();
	    x = x + 1;
	}
    }
    public void output(){
	System.out.println("Case "+x+":"+" "+data);
    }
    



    public static void main(String[] args){
	Main  p = new Main();
	p.input();
	//	p.output();
    }
}
 