#include #include using namespace std; using namespace atcoder; #define all(s) (s).begin(), (s).end() #define rall(s) (s).rbegin(), (s).rend() #define rep(i,l,r) for(int i=l;il;i--) using ll=long long; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); int N;cin>>N; string S;cin>>S; int cnt=0; rep(i,4,S.size()-5){ string t=S.substr(i-4,5); if(t=="HAPPY"){ S[i]='K'; cnt++; } } int d=0; string last=S.substr(S.size()-5,5); string tar="HAPPY"; rep(i,0,5)if(last[i]!=tar[i])d++; cout<