#include using namespace std; #ifdef LOCAL #include "settings/debug.cpp" #define _GLIBCXX_DEBUG #else #define Debug(...) void(0) #endif using ll = long long; #define rep(i, n) for (int i = 0; i < (n); ++i) int main() { int n; cin >> n; vector s; int a; cin >> a; s.assign(a + 1, 0); s[0]++, s[a]--; rep(_, n - 1) { cin >> a; s[0]++, s[a]--; } rep(i, s.size()) s[i + 1] += s[i]; rep(i, s.size() - 1) { cout << s[i] << " \n"[i == s.size() - 2]; } return 0; }