#include <bits/stdc++.h>
using namespace std;
long long rd() {
  char ch = getchar();
  long long x = 0;
  int op = 1;
  for (; !isdigit(ch); ch = getchar())
    if (ch == '-') op = -1;
  for (; isdigit(ch); ch = getchar()) x = (x << 1) + (x << 3) + ch - '0';
  return x * op;
}
void _wr(long long a) {
  if (a >= 10) _wr(a / 10);
  putchar(a % 10 + '0');
}
void wr(long long a, char end = ' ') {
  if (a < 0) putchar('-'), a = -a;
  _wr(a);
  putchar(end);
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long n;
  n = rd();
  long long l[n + 1], r[n + 1], temp;
  for (int i = 0; i < n; i++) {
    l[i] = rd();
    r[i] = rd() + 1;
  }
  l[n] = LLONG_MAX;
  r[n] = LLONG_MAX;
  sort(l, l + n);
  sort(r, r + n);
  long long ans[200005] = {};
  long long lp = 1, rp = 0, current = 1, last = l[0];
  while (1) {
    if (lp >= n && rp >= n)
      break;
    else if (r[rp] <= l[lp]) {
      ans[current] += r[rp] - last;
      current--;
      last = r[rp];
      rp++;
    } else {
      ans[current] += l[lp] - last;
      current++;
      last = l[lp];
      lp++;
    }
  }
  for (int i = 1; i <= n; i++) {
    wr(ans[i]);
  }
  return 0;
}
