class program
{
   define copia()
   {
      if(nextToABeeper)
         {
            pickbeeper();
            copia();
            putbeeper();
            move();
            putbeeper();
            turnleft();
            turnleft();
            move();
            turnleft();
            turnleft();
         }
   }

   define cuenta()
   {
      while(frontIsClear)
      {
         copia();
         move();
         putbeeper();
      }
   }

   program()
   {
    putbeeper();
    cuenta();
    turnoff();
   }

}
