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