#include #include using namespace std; #define ll long long #define rep(i,n) for(int (i)=0;(i)<(n);(i)++) #define repeat(i,s,n) for(int (i)=s; (i)<(n); (i)++) #define revrep(i,n) for(int (i)=(n)-1;i>=0; i--) int main() { cin.tie(0); ios::sync_with_stdio(false); cout<::max_digits10); int n; string s; cin>>n>>s; int ans=0; rep(i,n) { repeat(j,i+1,n) { int k=2*j-i; if(j