#include <bits/stdc++.h>
using namespace std;
void err(istream_iterator<string> it) {}
template <typename T, typename... Args>
void err(istream_iterator<string> it, T a, Args... args) {
  cerr << *it << " = " << a << endl;
  err(++it, args...);
}
long long int setbits(long long int x) { return __builtin_popcount(x); }
const long long int MOD = 1e9 + 7;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long int n;
  cin >> n;
  pair<long long int, long long int> coords[n];
  for (long long int i = 0; i < n; i++)
    cin >> coords[i].first >> coords[i].second;
  set<long long int> distinct;
  for (long long int i = 0; i < n; i++) {
    distinct.insert(coords[i].first);
    distinct.insert(coords[i].second);
    distinct.insert(coords[i].second + 1);
  }
  long long int cnt = 1;
  map<long long int, long long int> compress;
  map<long long int, long long int> reversecompress;
  for (auto it = distinct.begin(); it != distinct.end(); it++) {
    compress[*it] = cnt;
    reversecompress[cnt] = *it;
    cnt++;
  }
  long long int range[cnt + 1];
  fill(range, range + cnt + 1, 0);
  for (long long int i = 0; i < n; i++) {
    long long int L = compress[coords[i].first];
    long long int R = compress[coords[i].second];
    range[L] += 1;
    range[R + 1] -= 1;
  }
  long long int freq[n + 1];
  fill(freq, freq + n + 1, 0);
  long long int sum = 0;
  for (long long int i = 1; i < cnt; i++) {
    sum += range[i];
    long long int lef = reversecompress[i];
    long long int rig = reversecompress[i + 1];
    freq[sum] += rig - lef;
  }
  for (long long int i = 1; i < n + 1; i++) cout << freq[i] << " ";
  cout << endl;
  return 0;
}
