#include using namespace std; int ans[5]; int main(){ string s;cin>>s; for(int i = 0; s.size() > i; i++){ if(s[i] == 'Y')ans[0]++; else if(s[i] == 'E')ans[1]++; else if(s[i] == 'A')ans[2]++; else if(s[i] == 'H')ans[3]++; else ans[4]++; } cout << ans[0] << " " << ans[1] << " " << ans[2] << " " << ans[3] << " " << ans[4] << endl; }