#include using namespace std; int main() { string S; cin >> S; string T = "YEAH!"; for(int i = 0; i < 5; i++) { if(i > 0) cout << " "; cout << count(begin(S), end(S), T[i]); } cout << endl; }