#include <bits/stdc++.h>
using namespace std;
const int MAXN = 2e5, INF = 1e18;
bool ComparePoints(pair<long long, int> a, pair<long long, int> b) {
  if (a.first == b.first) {
    return a.second > b.second;
  }
  return a.first < b.first;
}
set<long long> s;
vector<pair<long long, int> > v;
long long ans[MAXN + 1];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    long long l, r;
    cin >> l >> r;
    v.push_back({l, 1});
    v.push_back({r, -1});
    s.insert(l), s.insert(r);
    ans[i] = 0;
  }
  ans[n] = 0;
  for (auto x : s) {
    v.push_back({x, 0});
  }
  sort(v.begin(), v.end(), ComparePoints);
  long long cnt = 0, pr = 0;
  int vs = v.size();
  for (int i = 0; i < vs; i++) {
    long long idx = v[i].first;
    int val = v[i].second;
    if (idx != pr) {
      ans[cnt] += idx - pr - 1;
    }
    if (val == 0) {
      ans[cnt]++;
    }
    cnt += val;
    pr = idx;
  }
  for (int i = 1; i <= n; i++) {
    cout << ans[i] << " ";
  }
  cout << "\n";
  return 0;
}
