#include <iostream> using namespace std; int main() { int k, t, one = 0, five = 0, ten = 0; cin >> k; for (int i = 1; i <= k; i++) { cin >> t; switch (t) { case 1:one++;break; case 5:five++;break; case 10:ten++; } } cout << one << '\n' << five << '\n' << ten; return 0; }