import java.util.Scanner;

public class Main{

      public static void main (String[] args){
             Scanner in = new Scanner(System.in);
             StringBuilder bu = new StringBuilder();
            
             int num = 0;
             int i = 1;
         
             while(true){
                  num = Integer.parseInt(in.next());
                  if(num == 0){
                    break;
                   }

              bu.append ("Case " + i + ": "+ num + "\n");
             i++;
           }
         System.out.print(bu);
   }
} import java.util.Scanner; Scanner java.util public class Main{

      public static void main (String[] args){
             Scanner in = new Scanner(System.in);
             StringBuilder bu = new StringBuilder();
            
             int num = 0;
             int i = 1;
         
             while(true){
                  num = Integer.parseInt(in.next());
                  if(num == 0){
                    break;
                   }

              bu.append ("Case " + i + ": "+ num + "\n");
             i++;
           }
         System.out.print(bu);
   }
} Main public static void main (String[] args){
             Scanner in = new Scanner(System.in);
             StringBuilder bu = new StringBuilder();
            
             int num = 0;
             int i = 1;
         
             while(true){
                  num = Integer.parseInt(in.next());
                  if(num == 0){
                    break;
                   }

              bu.append ("Case " + i + ": "+ num + "\n");
             i++;
           }
         System.out.print(bu);
   } main {
             Scanner in = new Scanner(System.in);
             StringBuilder bu = new StringBuilder();
            
             int num = 0;
             int i = 1;
         
             while(true){
                  num = Integer.parseInt(in.next());
                  if(num == 0){
                    break;
                   }

              bu.append ("Case " + i + ": "+ num + "\n");
             i++;
           }
         System.out.print(bu);
   } Scanner in = new Scanner(System.in); in new Scanner(System.in) StringBuilder bu = new StringBuilder(); bu new StringBuilder() int num = 0; num 0 int i = 1; i 1 while(true){
                  num = Integer.parseInt(in.next());
                  if(num == 0){
                    break;
                   }

              bu.append ("Case " + i + ": "+ num + "\n");
             i++;
           } true {
                  num = Integer.parseInt(in.next());
                  if(num == 0){
                    break;
                   }

              bu.append ("Case " + i + ": "+ num + "\n");
             i++;
           } num = Integer.parseInt(in.next()) num Integer.parseInt(in.next()) Integer.parseInt Integer in.next() in.next in if(num == 0){
                    break;
                   } num == 0 num 0 {
                    break;
                   } break; bu.append ("Case " + i + ": "+ num + "\n") bu.append bu "Case " + i + ": "+ num + "\n" num ": " "Case " + i + ": "+ num + "\n" "Case " i ": " num "\n" i++ i System.out.print(bu) System.out.print System.out System System.out bu String[] args args public class Main{

      public static void main (String[] args){
             Scanner in = new Scanner(System.in);
             StringBuilder bu = new StringBuilder();
            
             int num = 0;
             int i = 1;
         
             while(true){
                  num = Integer.parseInt(in.next());
                  if(num == 0){
                    break;
                   }

              bu.append ("Case " + i + ": "+ num + "\n");
             i++;
           }
         System.out.print(bu);
   }
} public class Main{

      public static void main (String[] args){
             Scanner in = new Scanner(System.in);
             StringBuilder bu = new StringBuilder();
            
             int num = 0;
             int i = 1;
         
             while(true){
                  num = Integer.parseInt(in.next());
                  if(num == 0){
                    break;
                   }

              bu.append ("Case " + i + ": "+ num + "\n");
             i++;
           }
         System.out.print(bu);
   }
} Main
import java.util.Scanner;

public class Main{

      public static void main (String[] args){
             Scanner in = new Scanner(System.in);
             StringBuilder bu = new StringBuilder();
            
             int num = 0;
             int i = 1;
         
             while(true){
                  num = Integer.parseInt(in.next());
                  if(num == 0){
                    break;
                   }

              bu.append ("Case " + i + ": "+ num + "\n");
             i++;
           }
         System.out.print(bu);
   }
}