#include <bits/stdc++.h> using namespace std; using ch = char; using ll = long long; using ld = long double; using db = double; using st = string; using vdb = vector<db>; using vvdb = vector<vdb>; using vl = vector<ll>; using vvl = vector<vl>; using vd = vector<ld>; using vvd = vector<vd>; using vs = vector<st>; using vvs = vector<vs>; using vc = vector<ch>; using vvc = vector<vc>; using vb = vector<bool>; using vvb = vector<vb>; const ll mod1 = 998244353; const ll mod2 = 1000000007; int main(){ st S; cin>>S; map<ch,ll> X; for(int i=0; i<S.size(); i++) X[S.at(i)]++; cout<<X['Y']<<" "<<X['E']<<" "<<X['A']<<" "<<X['H']<<" "<<X['!']<<endl; }