#include <bits/stdc++.h>
using namespace std;
const int mod = 1000000007;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long t, n, m, k, q, x, a, b, c, d;
  cin >> n;
  vector<pair<long long, long long> > v(2 * n);
  for (int i = 0; i < 2 * n; i++) {
    cin >> v[i].first;
    v[i].second = i & 1 ? 1 : 0;
  }
  vector<long long> vv(n + 1);
  sort((v).begin(), (v).end());
  a = 0;
  b = 0;
  c = v[0].first;
  for (int i = 0; i < 2 * n; i++) {
    if (v[i].second) {
      if (b) {
        vv[a] += v[i].first - c;
      } else {
        vv[a] += v[i].first - c + 1;
      }
      a--;
      b = 1;
      c = v[i].first;
    } else {
      if (b) {
        vv[a] += v[i].first - c - 1;
      } else {
        vv[a] += v[i].first - c;
      }
      a++;
      b = 0;
      c = v[i].first;
    }
  }
  for (int i = 1; i <= n; i++) cout << vv[i] << ' ';
  cout << '\n';
  return 0;
}
