#include <bits/stdc++.h>
using namespace std;
map<long long, long long> m;
long long f[400005];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n;
  cin >> n;
  long long l, r;
  for (int i = 0; i < n; i++) {
    cin >> l >> r;
    m[l] += 1;
    m[r + 1] -= 1;
  }
  map<long long, long long>::iterator it;
  it = m.begin();
  long long sum = it->second, prevsum = sum;
  for (it = next(it); it != m.end(); it++) {
    sum += it->second;
    long long cnt = 0;
    cnt += it->first - prev(it)->first;
    f[prevsum] += cnt;
    prevsum = sum;
  }
  for (int i = 1; i <= n; i++) cout << f[i] << " ";
  return 0;
}
