#include <bits/stdc++.h>
using namespace std;
const int N = 2e5 + 10;
long long res[N];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int n;
  cin >> n;
  map<long long, vector<int> > st;
  for (int i = 0; i < (int)n; i++) {
    long long l, r;
    cin >> l >> r;
    st[l].push_back(0);
    st[r].push_back(1);
  }
  long long lst = -1, cnt = 0;
  for (auto p : st) {
    long long curP = p.first;
    vector<int> events = p.second;
    int strts = 0;
    for (auto x : events) strts += x == 0;
    if (lst != -1) {
      res[cnt] += curP - lst;
      res[cnt + strts]++;
      lst = curP + 1;
      cnt += strts;
      cnt -= events.size() - strts;
    } else {
      res[cnt + strts]++;
      cnt += strts;
      cnt -= events.size() - strts;
      lst = curP + 1;
    }
  }
  for (int i = 1; i < (int)n + 1; i++) {
    if (i > 1) cout << " ";
    cout << res[i];
  }
  cout << "\n";
}
