#include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; const ll INF=1LL<<60; typedef pair P; typedef pair PP; const ll MOD=1e9+7; int main(){ int N; cin>>N; string S; cin>>S; vector> mp(3); for(int i=0;i<3*N;i++){ mp[i%3][S[i]]++; } int cnt=0; vector ans(3); for(int i=0;i<3;i++){ //min({mp[0]['c'],mp[1]['o'],mp[2]['n']}) //ans=max(ans,min({mp[i]['c'],mp[(i+1)%3]['o'],mp[(i+2)%3]['n']})); ans[i]=min({mp[i]['c'],mp[(i+1)%3]['o'],mp[(i+2)%3]['n']}); cnt+=ans[i]; } if(cnt==N){ if(ans[0]==N){ cout<