n, h = gets.chomp.split(" ").map(&:to_i)

a = []
b = []

n.times do
  a_, b_ = gets.chomp.split(" ").map(&:to_i)
  a << a_
  b << b_
end

amax = a.max
b.sort!

ans = 0

(n-1).downto(0) do |i|
  break if h <= 0
  if b[i] > amax
    h -= b[i]
    ans += 1
  end
end

ans += h / amax

if h % amax == 0
  puts ans
else
  puts ans + 1
end