program jihanki
  implicit none
  integer :: i, j, k
  integer :: a, b, c
  integer :: p

  read(*,*)a,b,c

  p=b/a
  if (p>=c) then
     write(*,*)c
  else
     write(*,*)p
  end if
  
end program jihanki