#include #include #include #include using namespace std; int main() { string s; cin >> s; vector ans; for (auto c : string("YEAH!")) { ans.push_back(count(s.begin(), s.end(), c)); } for (int i = 0; i < ans.size(); i++) { if (i != 0) { cout << " "; } cout << ans[i]; } cout << endl; return 0; }