#include #define rep(i,n) for (int i=0; i<(n); ++i) using namespace std; using ll=long long; int main(){ string s; cin>>s; int n=s.length(); int x1=0,x2=0,x3=0,x4=0,x5=0; rep(i,n){ if(s[i]=='Y'){ x1++; } else if(s[i]=='E'){ x2++; } else if(s[i]=='A'){ x3++; } else if(s[i]=='H'){ x4++; } else{ x5++; } } cout<