#include #include using namespace std; int main(void){ string s; map m; cin >> s; for(int i = 0;i < s.size();i++){ m[s[i]]++; } cout << m['Y'] << " " << m['E'] << " " << m['A'] << " " << m['H'] << " " << m['!'] << endl; }