#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  map<long long, int> m;
  long long ans[201000];
  long long l, r;
  for (int i = 1; i <= n; i++) {
    cin >> l >> r;
    m[l]++;
    m[r + 1]--;
  }
  long long st = 0;
  int num = 0;
  map<long long, int>::iterator it;
  for (it = m.begin(); it != m.end(); it++) {
    if (it == m.begin()) {
      num += it->second;
      st = it->first;
      continue;
    }
    ans[num] += it->first - st;
    num += it->second;
    st = it->first;
  }
  for (int i = 1; i <= n; i++) cout << ans[i] << endl;
  return 0;
}
