
// Burton Rosenberg
// Mon Feb 2 1998
// BoomRec.java

import java.io.* ;

class BoomRec
{

   public static void main( String [] argv )
   throws IOException
   {
      BufferedReader stdin = new BufferedReader
         (new InputStreamReader(System.in)) ;

      System.out.print("Count: " ) ;
      int i ;
      i = Integer.parseInt(stdin.readLine()) ;

      theRecursion( i ) ;

   }
   
   static void theRecursion( int a ) 
   {
      if ( a<=0 ) 
      {
         System.out.println("Boom!") ;
      }
      else
      {
         System.out.println(a) ;
         theRecursion( a-1 ) ;
      }
      return ;
   }
}

