import java.io.*;  

public class Main {
    public static void main(String[] args) throws IOException {

	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	int i=0;
    int y = 1;
    String buf = br.readLine();
    //String[] x = buf.split("",0);
    int z = Integer.parseInt(buf);
    while(z!=0){
    	
       	System.out.println("Case "+ y + ": "  + z);
    	buf = br.readLine();
    	z = Integer.parseInt(buf);
    	y++;
    }
  }
    
} import java.io.*; io.* java public class Main {
    public static void main(String[] args) throws IOException {

	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	int i=0;
    int y = 1;
    String buf = br.readLine();
    //String[] x = buf.split("",0);
    int z = Integer.parseInt(buf);
    while(z!=0){
    	
       	System.out.println("Case "+ y + ": "  + z);
    	buf = br.readLine();
    	z = Integer.parseInt(buf);
    	y++;
    }
  }
    
} Main public static void main(String[] args) throws IOException {

	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	int i=0;
    int y = 1;
    String buf = br.readLine();
    //String[] x = buf.split("",0);
    int z = Integer.parseInt(buf);
    while(z!=0){
    	
       	System.out.println("Case "+ y + ": "  + z);
    	buf = br.readLine();
    	z = Integer.parseInt(buf);
    	y++;
    }
  } main {

	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	int i=0;
    int y = 1;
    String buf = br.readLine();
    //String[] x = buf.split("",0);
    int z = Integer.parseInt(buf);
    while(z!=0){
    	
       	System.out.println("Case "+ y + ": "  + z);
    	buf = br.readLine();
    	z = Integer.parseInt(buf);
    	y++;
    }
  } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int i=0; i 0 int y = 1; y 1 String buf = br.readLine(); buf br.readLine() br.readLine br int z = Integer.parseInt(buf); z Integer.parseInt(buf) Integer.parseInt Integer buf while(z!=0){
    	
       	System.out.println("Case "+ y + ": "  + z);
    	buf = br.readLine();
    	z = Integer.parseInt(buf);
    	y++;
    } z!=0 z 0 {
    	
       	System.out.println("Case "+ y + ": "  + z);
    	buf = br.readLine();
    	z = Integer.parseInt(buf);
    	y++;
    } System.out.println("Case "+ y + ": "  + z) System.out.println System.out System System.out "Case "+ y + ": "  + z ": " "Case "+ y + ": "  + z "Case " y ": " z buf = br.readLine() buf br.readLine() br.readLine br z = Integer.parseInt(buf) z Integer.parseInt(buf) Integer.parseInt Integer buf y++ y String[] args args public class Main {
    public static void main(String[] args) throws IOException {

	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	int i=0;
    int y = 1;
    String buf = br.readLine();
    //String[] x = buf.split("",0);
    int z = Integer.parseInt(buf);
    while(z!=0){
    	
       	System.out.println("Case "+ y + ": "  + z);
    	buf = br.readLine();
    	z = Integer.parseInt(buf);
    	y++;
    }
  }
    
} public class Main {
    public static void main(String[] args) throws IOException {

	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	int i=0;
    int y = 1;
    String buf = br.readLine();
    //String[] x = buf.split("",0);
    int z = Integer.parseInt(buf);
    while(z!=0){
    	
       	System.out.println("Case "+ y + ": "  + z);
    	buf = br.readLine();
    	z = Integer.parseInt(buf);
    	y++;
    }
  }
    
} Main
import java.io.*;  

public class Main {
    public static void main(String[] args) throws IOException {

	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	int i=0;
    int y = 1;
    String buf = br.readLine();
    //String[] x = buf.split("",0);
    int z = Integer.parseInt(buf);
    while(z!=0){
    	
       	System.out.println("Case "+ y + ": "  + z);
    	buf = br.readLine();
    	z = Integer.parseInt(buf);
    	y++;
    }
  }
    
}