l=int(input())
b=input()
c=0
for i in range(l):
    if b[i]!=b[len(b)-i-1]:
            b+=b[i]
            c+=1
print(c)

