#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a, c = 1, t = 0, cnt = 0;
  cin >> n;
  int ans[200000];
  for (int i = 0; i < n; i++) {
    ans[i] = 0;
  }
  for (int i = 0; i < n; i++) {
    cin >> a;
    if (a != c) {
      t++;
      c = a;
    }
    ans[t] += 1;
  }
  for (int i = 0; i < n; i++) {
    cout << ans[i] << endl;
  }
}
