#include using namespace std; using ll = long long; using llu = long long unsigned; vector dx = { 0, 0, -1, 1}; vector dy = {-1, 1, 0, 0}; #define MOD 1000000007 int main() { int N; cin >> N; map data; for (int i=0; i> S >> C; data[S] = C; } vector ret(8, 0); for (auto x : data) { ret[x.second]++; } for (auto x : ret) { cout << x << endl; } return 0; }