#include #include #include using namespace std; string S; int Y=0,E=0,A=0,H=0,EX=0; int main(){ ios::sync_with_stdio(false); cin>>S; assert(S.size()<=100000&&1<=S.size()); for(auto x : S){ if(x=='Y')Y++;if(x=='E')E++;if(x=='A')A++;if(x=='H')H++;if(x=='!')EX++; } cout<