#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long n;
  cin >> n;
  map<long long, long long> mp1, mp2;
  set<long long> all;
  for (long long i = 0; i < n; ++i) {
    long long l, r;
    cin >> l >> r;
    mp1[l]++;
    mp2[r]++;
    all.insert({l, r});
  }
  vector<long long> res(n + 1, 0);
  long long last = 0;
  long long cnt = 0;
  for (auto &&x : all) {
    res[cnt] += x - last - 1;
    cnt += mp1[x];
    ++res[cnt];
    cnt -= mp2[x];
    last = x;
  }
  for (long long i = 1; i <= n; ++i) cout << res[i] << ' ';
  return 0;
}
