#include using namespace std; typedef long long ll; typedef pair P; #define REP(i,n) for(ll i=0;i> N >> s; ll ans=0; for(i=0;i<=N-6;i++){ if(i+4>N-6) break; string x=s.substr(i,5); if(x=="HAPPY"){ s[i]='B'; ans++; } } string a="HAPPY"; for(i=N-5;i