#include <bits/stdc++.h>
using namespace std;
int main() {
  size_t n;
  scanf("%zu", &n);
  vector<int64_t> events;
  for (size_t i = 0; i < n; i++) {
    int64_t a, b;
    scanf("%lld%lld", &a, &b);
    events.push_back(a);
    events.push_back(-(b + 1));
  }
  sort(begin(events), end(events),
       [&](const int64_t &x, const int64_t &y) -> bool {
         return abs(x) < abs(y);
       });
  vector<uint64_t> counts(n + 1, 0);
  uint64_t p = 0, count = 0;
  for (auto e : events) {
    auto c = abs(e);
    if (c != p) counts[count] += c - p;
    if (e >= 0)
      count++;
    else
      count--;
    p = c;
  }
  printf("%llu", counts[1]);
  for (size_t i = 2; i < n + 1; i++) printf(" %llu", counts[i]);
  printf("\n");
}
