#include <bits/stdc++.h>
using namespace std;
#define int long long
signed main(){
    string S;
    cin>>S;
    vector<int> s(5);
    string ikezaki = "YEAH!";
    for(int i=0;i<S.size();i++){
        for(int j=0;j<5;j++){
            if(ikezaki[j] == S[i]) s[j]++;
        }
    }
    for(int i=0;i<5;i++) cout<<s[i]<<' ';
    cout<<endl;
}