#include #include using namespace std; int N; string S; int main(){ cin >> N >> S; assert(N==(int)S.size()); assert(3<=N && N<=5000); int ans = 0; for(int i=0;i