#include <bits/stdc++.h>
using namespace std;
vector<pair<long long, long long> > v;
vector<pair<long long, long long> > c;
const long long N = 1e6 + 10;
long long ans[N];
signed main() {
  long long n;
  ios ::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  cin >> n;
  v.resize(n);
  for (pair<long long, long long>& x : v) {
    cin >> x.first >> x.second;
    c.push_back({x.first, 1});
    c.push_back({++x.second, -1});
  }
  sort(c.begin(), c.end());
  long long last = 0, now = 0;
  for (pair<long long, long long> x : c) {
    long long nxt = x.first;
    ans[now] += nxt - last;
    now += x.second;
    last = nxt;
  }
  for (register long long i = 1; i <= n; i++) cout << ans[i] << ' ';
}
