#include #include #include #include #include #include #include #include #include using namespace std; typedef long long int ll; int main(){ cin.tie(nullptr); ios::sync_with_stdio(false); string s; cin >> s; int y=0,e=0,a=0,h=0,z=0; for(char c:s){ if(c=='Y')y++; if(c=='E')e++; if(c=='A')a++; if(c=='H')h++; if(c=='!')z++; } printf("%d %d %d %d %d\n",y,e,a,h,z); }