#include <bits/stdc++.h>
using namespace std;
map<long long, long long> mp, mp1;
int main() {
  long long n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    long long x, y;
    cin >> x >> y;
    mp[x]++;
    mp[y + 1]--;
  }
  map<long long, long long>::iterator it = mp.begin();
  long long now = 0, sum = 0;
  while (next(it) != mp.end()) {
    now += it->second;
    long long l = it->first;
    long long r = next(it)->first;
    if (now > 0) mp1[now] += (r - l);
    it++;
  }
  for (int i = 1; i <= n; i++) {
    cout << mp1[i] << " ";
  }
  cout << endl;
}
