#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:102400000,102400000")
using namespace std;
void makedata() {
  freopen("input.txt", "w", stdout);
  fclose(stdout);
}
map<long long, pair<int, int> > mp;
vector<long long> v;
long long ans[250000];
int main() {
  std::ios::sync_with_stdio(0), cin.tie(0);
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    long long a, b;
    cin >> a >> b;
    mp[a].first++, mp[b].second++, v.push_back(a), v.push_back(b);
  }
  sort(v.begin(), v.end());
  v.erase(unique(v.begin(), v.end()), v.end());
  int h = 0;
  for (int i = 0; i < v.size(); i++) {
    long long p = v[i];
    pair<int, int> q = mp[p];
    ans[h + q.first]++;
    h = h + q.first - q.second;
    if (i + 1 < v.size()) ans[h] += v[i + 1] - v[i] - 1;
  }
  for (int i = 1; i <= n; i++) cout << ans[i] << ' ';
  return 0;
}
