n=int(input()) s=input() c=0 for i in range(n): for j in range(1,n+1): if 0<=i-j and i+j