#include <bits/stdc++.h>
using namespace std;
vector<pair<long long, long long> > a;
long long n, s;
bool cmp(pair<long long, long long> a, pair<long long, long long> b) {
  return a.first < b.first || (a.first == b.first && a.second > b.second);
}
void read() {
  cin >> n >> s;
  a.resize(n);
  for (auto &i : a) cin >> i.second >> i.first;
  sort(a.begin(), a.end(), cmp);
  vector<pair<long long, long long> > help;
  help.push_back(a[0]);
  for (long long i = 1; i < n; i++) {
    if ((help.back()).second < a[i].second && a[i].first < s)
      help.push_back(a[i]);
  }
  a = help;
}
const long long INF = -1e18;
struct line {
  long long k, b;
  line() { k = 0, b = INF; }
  line(long long x, long long y) { k = x, b = y; }
};
long long eval(line l, long long x) { return l.k * x + l.b; }
long double cross(line a, line b) {
  return (long double)(b.b - a.b) / (a.k - b.k);
}
struct cht {
  vector<long double> p;
  vector<line> l;
  cht() {
    p = {};
    l = {};
  }
  void upd(line x) {
    while (!p.empty() && p.back() >= cross(x, l.back()))
      p.pop_back(), l.pop_back();
    l.push_back(x);
    if (l.size() >= 2) p.push_back(cross(l[l.size() - 1], l[l.size() - 2]));
  }
  long long get(long long x) {
    long long pos = lower_bound(p.begin(), p.end(), x) - p.begin();
    return eval(l[pos], x);
  }
};
cht help;
long long fin(long long x) {
  long long l = -1, r = 1e9;
  while (l < r - 1) {
    long long mid = (l + r) / 2;
    long long have = help.get(mid);
    if (have >= x)
      r = mid;
    else
      l = mid;
  }
  return r;
}
long long ans = 1e18;
void relax(long long k, long long b) { ans = min(ans, (s - b + k - 1) / k); }
void run() {
  long long n = a.size();
  help.upd(line(a[0].second, 0));
  relax(a[0].second, 0);
  for (long long i = 1; i < n; i++) {
    long long k = a[i].second;
    long long f = fin(a[i].first);
    long long b = -a[i].second * f + help.get(f) - a[i].first;
    help.upd(line(k, b));
    relax(k, b);
  }
}
void write() { cout << ans << endl; }
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  read();
  run();
  write();
  return 0;
}
