#include <bits/stdc++.h>
using namespace std;
long long r[200011];
int main(int argc, char* argv[]) {
  ios_base::sync_with_stdio(false);
  unsigned int n;
  cin >> n;
  map<long long, long long> v;
  for (unsigned int i = 0; i < n; ++i) {
    long long a, b;
    cin >> a >> b;
    ++v[a];
    --v[b + 1];
  }
  long long co = 0, st = 0;
  for (auto it : v) {
    r[co] += it.first - st;
    co += it.second;
    st = it.first;
  }
  for (unsigned int i = 1; i <= n; ++i) cout << r[i] << ' ';
  cout << endl;
  return 0;
}
