#include <bits/stdc++.h>
using namespace std;
long long mod = 1e9 + 7;
long long inf = 4e18;
const long long N = 2e5 + 5;
long long ans[N];
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long tt = 1;
  while (tt--) {
    long long n;
    cin >> n;
    long long l, r;
    map<long long, long long> mp;
    for (long long i = 0; i < n; ++i) {
      cin >> l >> r;
      ++mp[l];
      --mp[r + 1];
    }
    long long cnt = 0;
    l = -1;
    for (auto it : mp) {
      if (l == -1) {
        l = it.first;
        cnt += it.second;
      } else {
        ans[cnt] += (it.first - l);
        l = it.first;
        cnt += it.second;
      }
    }
    for (long long i = 1; i <= n; ++i) cout << ans[i] << " ";
  }
  return 0;
}
