ans=0 n=int(input()) s=list(input()) for i in range(n): for j in range(i+1,n): k=2*j-i if i