      integer :: numSocket,a,b,numTap
      
      read*,a,b
      
      if(b==1)then
        print*,0;stop
      end if
      
      numSocket = 1
      do numTap = 1,300
        numSocket = numSocket - 1 + A
        if( numSocket>=B )then
          print*,numTap
          stop
        end if
      end do
      end