#include using namespace std; const char ch[5] = {'Y', 'E', 'A', 'H', '!'}; int main() { string s; cin >> s; auto f = [&] (char x) { int res = 0; for (const char &c : s) res += (c == x); return res; }; for (int i = 0; i < 5; i++) cout << f(ch[i]) << ' '; return 0; }