Problem:
 Score : 200 points    Problem Statement  Takahashi loves palindromes. Non-palindromic strings are unacceptable to him. Each time he hugs a string, he can change one of its characters to any character of his choice.  Given is a string S . Find the minimum number of hugs needed to make S palindromic.      Constraints   S is a string consisting of lowercase English letters.  The length of S is between 1 and 100 (inclusive).         Input  Input is given from Standard Input in the following format:  S       Output  Print the minimum number of hugs needed to make S palindromic.        Sample Input 1 redcoder      Sample Output 1 1  For example, we can change the fourth character to o and get a palindrome redooder .       Sample Input 2 vvvvvv      Sample Output 2 0  We might need no hugs at all.       Sample Input 3 abcdabc      Sample Output 3 2

Solution (Python):
s = input()
cnt =0
for i in range(len(s)//2):
	if s[i]!=s[-i-1]:cnt+=1
print(cnt)

Solution (Python):
s = input()
t = s[::-1]
ans = 0
for i in range(len(s)//2):
    if s[i] != t[i]:
        ans += 1
print(ans)

Solution (Python):
from math import floor
s = list(input())
l = floor(len(s)/2)
ans = 0
if not len(s)%2 == 0:
    a = s[:l]
    b = s[l+1:]
else:
    a = s[:l]
    b = s[l:]
b.reverse()
for _a, _b in zip(a, b):
    if _a == _b:
        continue
    ans += 1
print(ans)

Solution (Python):
s = input()
rev = s[::-1]
ans = 0

for i in range(len(s) // 2):
    if s[i] != rev[i]:
        ans += 1

print(ans)

Solution (Python):
s = input()
t = s[::-1]
cnt = 0
for i,j in zip(s,t):
    if i != j:
        cnt += 1
print(int(cnt/2))

Solution (Python):
s = input()
t = s[::-1]
cnt = 0
for i,j in zip(s,t):
    if i != j:
        cnt += 1
print(int(cnt/2))

Solution (Python):
S=input()
L=len(S)
N=[0]*L
for i in range(L//2):
    if S[i]==S[-(i+1)]:
        N[i]=0
    else :
        N[i]=1
print(sum(N))

Solution (Python):
s=input()
count=0
for i in range(len(s)//2):
    if s[i]!=s[-i-1]:
        count+=1
print(count)

Solution (Python):
S=input()
N=len(S)//2
ans=0
for i in range(N):
    if S[i]!=S[-(i+1)]:
        ans+=1
print(ans)

Solution (Python):
S=str(input())
l=len(S)
c=0
for i in range(0,l//2):
    if S[i]!=S[l-i-1]:
        c=c+1
print(c)

Solution (Python):
s=input()
n=len(s)
count=0
for i in range(int(n//2)):
    if s[i]!=s[n-i-1]:
        count=count+1
    else:
        count=count
print(count)

Solution (Python):
S=list(input())

total=0
if len(S)%2==0:
    for i in range(int(len(S)/2)):
        if S[i]!=S[len(S)-1-i]:
            total+=1
    print(total)
else:
    for i in range(int((len(S)-1)/2)):
        if S[i]!=S[len(S)-1-i]:
            total+=1
    print(total)

Solution (Python):
s = input()
n = len(s) // 2
count = 0
for i in range(1, n + 1):
    if s[i - 1] != s[-i]:
        count += 1
print(count)

Solution (Python):
s=list(input())
n=len(s)

count=0

for i in range(n-1):
	if s[i] != s[n-i-1]:
		s[i]=s[n-i-1]
		count=count+1

print(count)

Solution (Python):

S = input()
S_ = S[::-1]
ans = 0

for i in range(len(S)//2):
    if S[i] != S_[i]:
        ans += 1
print(ans)

Solution (Python):
s = input()
slen = len(s)
slist = list(s)
srev = list(reversed(slist))
ans = 0
for i in range(slen):
    if slist[i] != srev[i]:
        ans += 1
if ans > 0:
    ans = int(ans / 2)
print(ans)

Solution (Python):
s=list(input())
ans=0
for i in range(int(len(s)//2)):
  if s[i]!=s[-i-1]:
    ans+=1
print(ans)

Solution (Python):
s=input()
ans=0
for i in range(len(s)//2):
    if s[i]!=s[-i-1]:
        ans+=1
print(ans)

Solution (Python):
S=input()
ans=0
for i in range(len(S)//2):
    if S[i]==S[-i-1]:
        pass
    else:
        ans+=1

print(ans)

Solution (Python):
import sys
import heapq
sys.setrecursionlimit(10**6)
input = lambda: sys.stdin.readline().rstrip()

S = input()
l = len(S)
count = 0
for x in range(l//2):
    if S[x] != S[l-x-1]:
        count+=1
print(count)

Solution (Python):
s=input()
counter=0
for i in range(len(s)//2):
	if s[i] != s[-(i+1)]:
		counter += 1
print(counter)

Solution (Python):
s=list(input())
r=0
n=len(s)
for ii in range(n//2):
  if s[ii]!=s[n-1-ii]:
    r+=1
print(r)

Solution (Python):
S=input()
T=S[::-1]
ans=0
for i in range(len(S)):
    if S[i]!=T[i]:
        ans+=1
print(ans//2)

Solution (Python):
a=str(input())
a=list(a)
count=0
for i in range(0,int(len(a)/2)):
    if a[i]!=a[len(a)-i-1]:
        count=count+1
  
print(count)

Solution (Python):
S = str(input())
cnt = 0
for i in range(len(S)//2):
    if S[i] != S[len(S)-i-1]:
        cnt += 1
print(cnt)

Solution (Python):
import math
import time
from collections import defaultdict, deque
from sys import stdin, stdout
from bisect import bisect_left, bisect_right
s=input()
ans=0
st=0
en=len(s)-1
while(st<en):
    if(s[st]!=s[en]):
        ans+=1 
    st+=1
    en-=1
print(ans)

Solution (Python):
S=input()

def count_diff2(q, a):
    return sum(
        c1 != c2 for c1, c2 in zip(q, a)
    )


if len(S)%2==0:
    Cut=int((len(S))/2)
    MAE=S[:Cut]
    USHIRO=S[-(Cut):]
    USHIRO=USHIRO[::-1]
    
    if MAE==USHIRO:
        print(0)
        quit()
    
    print(count_diff2(MAE,USHIRO))
    quit()

else:
    Cut=int((len(S))//2)
    MAE=S[:Cut]
    USHIRO=S[-(Cut):]
    USHIRO=USHIRO[::-1]
    
    if MAE==USHIRO:
        print(0)
        quit()
    
    print(count_diff2(MAE,USHIRO))
    quit()

Solution (Python):

s = str(input())
a =len(s)
s1 = s[::-1]

cnt =0
for i in range(a):
    if s[i] != s1[i]:
        cnt +=1
print(cnt//2)

Solution (Python):
import sys

a= input()
c = 0
b = int(len(a)/2)

for i in range(b):
    if(a[i] != a[len(a)-i-1]):
        c+=1
    

print(c)

Solution (Python):
S = input()
c = 0
for i in range(len(S) // 2):
    if S[i] != S[-(i+1)]:
        c += 1
print(c)

Solution (Python):
S =input()

ans=0
for i in range(len(S)//2):
    if S[i] != S[-(i+1)]:
        ans +=1

print(ans)

Solution (Python):
s = input()
l = len(s) // 2
a = s[:l]
b = s[:-(l + 1):-1]
count = 0
for i, j in zip(a, b):
    if i != j:
        count += 1
print(count)

Solution (Python):
s = input()
t = 0
for i in range(len(s)//2):
  if s[i] == s[-i-1]:
    continue
  else:
    t += 1
print(t)

Solution (Python):
def main():
  s = input()
  t = s[::-1]
  count = 0
 
  for i in range(len(s)//2):
     if s[i] != t[i]:
      count += 1
    
  print(count)

if __name__ == '__main__':
    main()

Solution (Python):
s = input()
t = s[::-1]
count = 0

for i in range(len(s)//2):
  if s[i] != t[i]:
    count += 1
    
print(count)

Solution (Python):
S = list(input())
S_rev = list(reversed(S))

count = 0
for i in range(len(S) // 2):
    if S[i] != S_rev[i]:
        count += 1

print(count)

Solution (Python):


import sys

def input():
    return sys.stdin.readline().rstrip('\n')


S = input()


length = len(S)
counter = 0

for i in range(length // 2):
    left = S[i]
    right = S[-(i+1)]
    
    if left == right:
        continue
    else:
        counter +=1

print(counter)

Solution (Python):
word = input()
count = 0
N = len(word)
for i in range(N):
    if word[i] != word[N-1-i]:
        word =word[0:i] +  word[N-1-i] + word[i+1:]
        count +=1
print(count)

Solution (Python):
a=input()
c=0
for i in range(len(a)//2):
  if a[i]!=a[len(a)-1-i]:
    c+=1
print(c)

Solution (Python):
S = str(input())
ans = 0

for i in range(0,int(len(S)/2)):
  if S[i] != S[-1-i]:
    ans = ans+1
print(ans)

Solution (Python):
S = list(input())
count=0
for i in range(0,len(S)//2,1):
    if S[i]!=S[len(S)-1-i]:
        count+=1

print(count)

Solution (Python):

S = input()

hag = 0

a = 0
b = len(S) - 1

while a < b:

    if S[a] != S[b]:
        hag += 1
    a += 1
    b -= 1

print(hag)

Solution (Python):
import itertools
import math
import fractions
import functools
s = input()
count = 0

for i in range((len(s)+1)//2):
    if s[i] != s[len(s)-1-i]:
        count += 1

print(count)

Solution (Python):

s = input()
cnt = 0
for i in range(len(s)//2 ):

    if not s[i] == s[-i-1]:
        cnt += 1
print(cnt)

Solution (Python):
S = input()
ans = 0
for i in range(len(S) // 2):
  if S[i] != S[-i-1]:
    ans += 1
print(ans)

Solution (Python):
s = input()

if len(s)%2 == 0:
    mid = len(s)//2
    s_first = s[:mid]
    s_last = s[mid:]
else:
    mid = len(s)//2
    s_first = s[:mid]
    s_last = s[(mid+1):]
    
ans = 0
for i,j in zip(s_first, s_last[::-1]):
    if i!= j:
        ans += 1
        
print(ans)

Solution (Python):
s = input()
t = s[::-1]
h = len(s) // 2
s = s[: h]
t = t[: h]
ans = 0
for i in range(len(s)):
  if s[i] != t[i]:
    ans += 1
print(ans)

Solution (Python):
s = input()
ans = 0
for f, b in zip(s, s[::-1]):
    if f!=b:
        ans+=1
print(ans//2)

Solution (Python):
s=input()
ans=0
for i in range(len(s)//2):
    if s[i]!=s[-i-1]:
        ans+=1
print(ans)

Solution (Python):
s = input()
n = len(s) // 2
count = 0
for i in range(n):
    count += s[i] != s[-(i+1)]
print(count)

Solution (Python):
s = input()
n = len(s) // 2
count = 0
for i in range(n):
    if s[i] != s[-(i+1)]:
        count += 1
print(count)

Solution (Python):
S = input()
count = 0
for i in range(len(S) // 2):
  if S[i] != S[-1-i]:
    count += 1
print(count)

Solution (Python):
s = input()
n = len(s)
if n % 2 == 0:
    h = n // 2
    a = s[0:h]
    b = s[h:n]
    ans = 0
    for i in range(h):
        if a[i] != b[h-i-1]:
            ans += 1
    print(ans)
else:
    h = (n-1) // 2
    a = s[0:h]
    b = s[h+1:n]
    ans = 0
    for i in range(h):
        if a[i] != b[h-i-1]:
            ans += 1
    print(ans)

Solution (Python):
import math
S = input()
T = S[::-1]
a = 0
for i in range(math.ceil((len(S))/2)):
    if not S[i] == T[i]:
        a = a+1
    else:
        pass

print(a)

Solution (Python):
s=input()
n=len(s)
ans=0
if n%2==0:
    for i in range(0,n//2):
        if s[i]!=s[n-1-i]:
            ans+=1
elif n%2==1:
    for i in range(0,n//2):
        if s[i]!=s[n-1-i]:
            ans+=1
print(ans)

Solution (Python):
S = input()

cnt = 0

for i in range(0,int(len(S)/2)):
    if S[i] != S[-(1+i)]:
        cnt += 1

print(cnt)

Solution (Python):
S = input()
N = len(S)
left = tuple(S[:N // 2])
right = tuple(reversed(S))[:N // 2]

count = 0
for lc, rc in zip(left, right):
    count += int(lc != rc)

print(count)

Solution (Python):
S = str(input())

counter = 0
for i in range(len(S)//2):
    if S[i] != S[-1-i]:
        counter += 1
    else:
        continue
print(counter)

Solution (Python):
s = input()
c = 0
j = len(s)-1
for i in range(0,int(len(s)/2)):
  if(s[i] != s[j]):
    c += 1
  j -= 1

print(c)

Solution (Python):
import fileinput

s = input()

c = 0
for i in range(int(len(s) / 2)):
    if s[i] != s[len(s) - 1 - i]:
        c += 1

print(c)

Solution (Python):
s = str(input())
ans = 0
temp = 0
l = int(len(s)) // 2

for i in range(l):
    temp = abs(temp)+1
    
    if s[i] != s[temp*-1]:
        ans += 1

print(ans)

Solution (Python):
s = input()
count = 0
for i in range(len(s)//2):
    if s[i] != s[len(s) - i - 1]: count += 1
print(count)

Solution (Python):
s = input()
ans = 0
for i in range(len(s) // 2):
	if s[i] != s[-(i + 1)]:
		ans += 1
		
print(ans)

Solution (Python):

"""
Created on Sat May  9 16:44:19 2020

@author: shinba
"""

S = input()
T = S[::-1]

L = len(S)//2 
ans = 0

for i in range(L):
    if S[i] != T[i]:
        ans += 1

print(ans)

Solution (Python):
s = input()
len_s = len(s)

ans=0
for i in range(1,len_s//2+1):
    if s[-i]!=s[-len_s-1+i]:
        ans+=1
print(ans)

Solution (Python):
s = input()
ans = 0
rs = s[::-1]
for i in range(len(s)):
    if s[i] != rs[i]:
        ans += 1
print(ans//2)

Solution (Python):
s = input()
n = len(s)
ans = 0
for i in range(n//2):
    if s[i] != s[n-1-i]:
        ans += 1
print(ans)

Solution (Python):
S = input()
h = (len(S)-1)//2+1
ans = 0
for i in range(h):
    if S[i] != S[-i-1]:
        ans += 1
print(ans)

Solution (Python):
s=input()
n=len(s)
cnt=0
if n%2==0:
  for i in range(n//2):
    if s[:n//2][::-1][i]!=s[n//2:n][i]:
      cnt+=1
  print(cnt)
else:
  for i in range(n//2):
    if s[:(n-1)//2][::-1][i]!=s[(n+1)//2:n][i]:
      cnt+=1
  print(cnt)

Solution (Python):
s=input()
n=0
for i in range(len(s)//2):
    if s[i]!=s[-i-1]:
        n+=1
print(n)

Solution (Python):
s=list(input())
a=0
for i in range(len(s)//2):
    if s[i]!=s[len(s)-1-i]:
        a+=1
print(a)

Solution (Python):
s = list(input())
t = s[:][::-1]
ans = 0
for i in range(len(s)//2):
  if s[i] != t[i]:  
    ans += 1

print(ans)

Solution (Python):
S = list(input())
count = 0

for i in range(len(S)//2):
  if S[i] != S[-1-i]:
    count += 1

print(count)

Solution (Python):
s = input()
ans = 0
for f, b in zip(s, s[::-1]):
    if f!=b: ans+=1
print(ans//2)

Solution (Python):
s = input()
cnt = 0
for i in range(len(s)//2):
    if s[i] != s[len(s) - i - 1]:
        cnt += 1
print(cnt)

Solution (Python):
S = str(input())
x = len(S)

if x % 2 == 0:
  Sb = S[:x//2]
  Sa = S[x//2:]
else:
  Sb = S[:x//2]
  Sa = S[(x+1)//2:]
Sar = Sa[::-1]
cnt = 0
for i in range(x // 2):
  if Sb[i] != Sar[i]:
    cnt += 1
  else:
    pass
print(cnt)

Solution (Python):
s = input()
slen = len(s)
i, count = 0, 0
while i != -(-slen // 2):
    if s[i] != s[slen - (i + 1)]:
        count += 1
    i += 1
print(count)

Solution (Python):
s = input()
count = 0
for i in range(len(s)):
  if s[i] != s[len(s)-1-i]:
    count += 1
print(count//2)

Solution (Python):
S = input()
l = len(S)
ct = 0
for i in range(l // 2):
  if S[i] != S[l - i - 1]:
    ct += 1
print(ct)

Solution (Python):
import math
s = input()
S = s[::-1]
count = 0
for i in range(0, len(s)):
  if s[i] != S[i]:
    count += 1
print(math.floor(count/2))

Solution (Python):
s=input()
l=len(s)//2
ans=0
i=0
while i<l:
    if not s[i]==s[(-1)*(1+i)]:
        ans+=1
    i+=1
print(ans)

Solution (Python):
s = input()

l = len(s) // 2
ans = 0
i = 0
while i < l:
  if not s[i] == s[-(i + 1)]:
    ans += 1
  i += 1

print(ans)

Solution (Python):
def main():
    S = input()
    S_reverse = S[::-1]
    count = 0
    for i in range(len(S)):
        if S[i] != S_reverse[i]:
            count += 1
    print(count//2)

if __name__ == '__main__':
    main()

Solution (Python):
s=input();print(sum(a<b for a,b in zip(s,s[::-1])))

Solution (Python):


import sys
input= lambda: sys.stdin.readline().rstrip()
sys.setrecursionlimit(10**9)
def pin(type=int):return map(type,input().split())
def tupin(t=int):return tuple(pin(t))
def lispin(t=int):return list(pin(t))

from fractions import gcd
def resolve():
    S=input()
    Sd=S[::-1]
    cnt=0
    for i in range(len(S)):
        if S[i]!=Sd[i]:
            cnt+=1
    print(cnt//2) 

resolve()

Solution (Python):

s = list(input())
re_s = list(reversed(s))
cnt = 0
for i in range(len(s)//2):
    if s[i] != re_s[i]:
        cnt += 1
print(cnt)

Solution (Python):
from collections import defaultdict, deque, Counter
from heapq import heappush, heappop
from itertools import permutations, accumulate
from math import sqrt, ceil, floor, factorial
from bisect import bisect_left, bisect_right
from copy import deepcopy
from operator import itemgetter
from functools import reduce


import sys
def I(): return int(input())  
def Is(): return map(int, input().split())  
def LI(): return list(map(int, input().split()))  
def TI(): return tuple(map(int, input().split()))  
def IR(n): return [I() for _ in range(n)]
def LIR(n): return [LI() for _ in range(n)]
def TIR(n): return [TI() for _ in range(n)]
def S(): return input()
def Ss(): return input().split()  
def LS(): return list(input())  
def SR(n): return [S() for _ in range(n)]
def SsR(n): return [Ss() for _ in range(n)]
def LSR(n): return [LS() for _ in range(n)]
sys.setrecursionlimit(1000000)
MOD = 1000000007
INF = float('inf')

s = S()
tmp = 0
for i in range(len(s)):
    if s[i] != s[-i-1]:
        tmp += 1
print(int(tmp/2))

Solution (Python):
a=input()
b=0
for i in range(len(a)):
  if a[i]!=a[len(a)-1-i]:
    b+=1
print(b//2)

Solution (Python):


S = str(input())
N = len(S)
cnt = 0
for i in range(N // 2):
    if S[i] != S[N - 1 - i]:
        cnt += 1

print(cnt)

Solution (Python):
s = list(input())
t = s[::-1]
count = 0
for i in range(len(s)):
    if s[i] != t[i]:
        count += 1
print(count//2)

Solution (Python):
S = input()

right = S[-len(S) // 2:][::-1]

print(len(S) // 2 - sum(S[i]==right[i] for i in range(len(S) // 2)))

Solution (Python):
S = input()

left = S[:len(S) // 2]
right = S[-len(S) // 2:][::-1]

print(len(S) // 2 - sum([left[i]==right[i] for i in range(len(S) // 2)]))

Solution (Python):
s=list(input())
t=list(reversed(s))
a=0
x=0
for i in range(len(s)):
    a=(a+0 if s[x]==t[x] else a+1)
    x=x+1
print(a//2)

Solution (Python):


s = list(str(input()))

ans = 0
for i in range(len(s)//2):
    if s[i] != s[-(i+1)]:
        ans += 1
print(ans)

Solution (Python):
S=input()
ans=0
for i in range(int((len(S)+1)/2)):
    if S[i] != S[len(S)-(i+1)]:
        ans+=1
print(ans)

Solution (Python):
s=input()
cnt=0
for i in range(len(s)//2):
	if s[i]!=s[len(s)-i-1]:
		cnt+=1
print(cnt)

Solution (Python):
S=list(str(input()))

count=0
for i in range(len(S)//2):
    if S[i]!=S[len(S)-1-i]:
        count+=1
        
print(count)

Solution (Python):
S = input()
ans = 0
for i in range(len(S)//2):
    if S[i] != S[len(S) - i -1]:
        ans += 1

print(ans)

Solution (Python):
s=list(input())

count=0
for i in range(len(s)//2):
    if s[i]!=s[-(i+1)]:
        
        s[-(i+1)]=s[i]
        count+=1

print(count)

Solution (Python):
s = input()
ans = 0
for i in range(len(s)//2):
  if s[i] != s[-i-1]:
    ans += 1
print(ans)

Solution (Python):
S = list(input())
cnt = 0
length = len(S) // 2
for i in range(length):
    if S[i] != S[-1-i]:
        cnt += 1
print(cnt)

Solution (Python):
s = input()
l = len(s)


ans = 0
for i in range(l//2 + l % 2):
    op = l - 1 - i
    if s[i] != s[op]:
        ans += 1

print(ans)

Solution (Python):
s = str(input())
ans = 0
j = len(s)-1
for i in range(len(s)):
  if s[i] != s[j]:
    ans += 1
  j -= 1
  
print(int(ans/2))

Solution (Python):
S = input()
count = 0
j = len(S)-1
for i in range(len(S)):
  if S[i] == S[j]:
    pass
  else:
    count += 1
  j -= 1
print(int(count/2))

Solution (Python):
s = input()
cnt = 0
for i in range(len(s)//2):
    if s[i] != s[-i-1]:
        cnt += 1
print(cnt)

Solution (Python):
s = input()
print(sum(s[i] != s[-i-1] for i in range(len(s) // 2)))

Solution (Python):
S = input()
c = 0
for i in range(len(S)//2):
    if S[i] != S[-(i+1)]:
        c += 1
print(c)

Solution (Python):
S=input()
F=S[::-1]
N=len(S)
a=0
for i in range(N):
  if S[i]!=F[i]:
     a=a+1
print(a//2)

Solution (Python):
a=input()
b=a[::-1]
ans=[1 for i in range(len(a)) if a[i] != b[i]]
print(sum(ans)//2)

Solution (Python):
import sys
def input(): return sys.stdin.readline().strip()

def resolve():
    s=input()
    cnt=0
    for i in range(len(s)//2):
        if s[i]!=s[-1-i]:
            cnt+=1
    print(cnt)
resolve()

Solution (Python):
s = list(input())
ans = 0
n = len(s)

for i in range(n//2):
    if s[i] != s[n-1-i]:
        ans += 1

print(ans)

Solution (Python):
s = input()
cnt = 0
for i in range(len(s)):
    j = len(s) - i - 1
    if j < i:
        break
    if s[i] != s[j]:
        cnt += 1
print(cnt)

Solution (Python):
s = input()
count = 0
for i in range(len(s)//2):
  if s[i] != s[-i + -1]:
    count+=1
print(count)

Solution (Python):
s = input()
count = 0
for i in range(len(s)//2):
    if s[i] != s[-1 * (i+1)]:
        count += 1
print(count)

Solution (Python):
S = list(input())
rS = S[::-1]

res = 0
for i in range(len(S)):
    if S[i] != rS[i]:
        res += 1
        S[i] = rS[i]
        rS = S[::-1]

print(res)

Solution (Python):
s = list(input())
t = s[::-1]
j = 0
for i in range(int(len(s)/2)):
    if s[i] != t[i]:
        j += 1
print(j)

Solution (Python):
s=input()
t=s[::-1]
cnt=0
for i in range(len(s)//2):
    if s[i]!=t[i]:
        cnt+=1
print(cnt)

Solution (Python):
s = list(input())

ans = 0

rs = s.copy()
rs = rs[::-1]

for i in range(len(s)//2):
    if s[i] != rs[i]:
        ans += 1
        
print(ans)

Solution (Python):
S=input()
count=0
for i in range(int(len(S)/2)):
    if S[i]!=S[-1-i]:
        count+=1
print(count)

Solution (Python):
import os

def main():
	s = input()
	num = 0
	if len(s)%2 == 0:	
		num = check(s[:len(s)//2], s[len(s)//2:])
	else:
		num = check(s[:len(s)//2], s[len(s)//2+1:])
	print(num)


def check(str_list1, str_list2):
	s1,s2 = str_list1, str_list2[::-1]
	count = 0
	for i in range(len(s1)):
		if s1[i] == s2[i]:
			pass
		else:
			count += 1
	return count


if __name__ == "__main__":
	main()

Solution (Python):
s = str(input())
hug = 0

for i in range(len(s)//2):

    if s[i]!=s[-1-i]:
        hug += 1

print(hug)

Solution (Python):
s = input()
t = s[::-1]
c = 0
for i in range(len(s)//2):
    if(s[i] != t[i]):c += 1
print(c)

Solution (Python):

s = str(input())
t = s[::-1]
count = 0

for i in range(int(len(s)/2)):
    if s[i] != t[i]:
        count += 1
 
print(count)

Solution (Python):
a=list(str(input()))
b=a[::-1]
cnt = 0
lst=[]
for i in range(len(a)//2):
  if a[i] != b[i]:
    cnt+=1
print(cnt)

Solution (Python):
S=input()
length = len(S)//2

cnt = 0
S_rev = S[::-1]

for i in range(length):
    if S[i] != S_rev[i]:
        cnt+=1

print(cnt)

Solution (Python):
s=input()
a=len(s)
b=a//2
c=0
for i in range(b):
    if s[i]==s[a-1-i]:
        c+=0
    else:
        c+=1
print(c)

Solution (Python):
n = list(input())

count = 0

for i in range(len(n)//2):
  if(n[i] != n[-1 - i]):
    count += 1

print(count)

Solution (Python):
s =input()
cnt =0
a =len(s)

if a%2==0:
    a = a/2

else:
    a = a//2 
for i in range(int(a)):
    if s[i]!=s[-i-1]:
        cnt +=1
        
print(cnt)

Solution (Python):
S = input()
s = list(S)
a = 0
if len(s)%2 == 0:
    for i in range(len(s)//2):
        if s[i] != s[len(s)-1-i]:
            a += 1
else:
    for i in range(-(-len(s)//2)):
        if s[i] != s[len(s)-1-i]:
            a += 1
print(a)

Solution (Python):
import math

lis = list(input())
count = 0


lisA = lis[:math.floor(float(len(lis))/2)]
lisB = lis[math.ceil(float(len(lis))/2):]

lisB.reverse()



for i in range(int(len(lis)/2)):
    if lisA[i] != lisB[i]:
        count += 1
    

print(count)

Solution (Python):

import collections
import itertools as it
import math

 
s = input()







sp = s[:len(s)//2]
sn = s[len(s)//2:]




ans = 0

for sp_, sn_ in zip(sp, sn[::-1]):
    
    if sp_ != sn_:
        ans += 1

print(ans)

Solution (Python):


S = input()

V1 = S[0:len(S)//2]
V2 = S[len(S)//2::][::-1]
ans = 0
for i in range(len(V1)):
    if V1[i] != V2[i]: ans += 1
print(ans)

Solution (Python):
S = input()

N = len(S)

t = N // 2

cnt = 0
for i in range(t):
    if S[i] != S[-(i+1)]:
        cnt += 1
print(cnt)

Solution (Python):

s = input()
n = len(s)
nn = -(-n//2)
ans = 0
for i in range(nn):
    if not s[i] == s[n-i-1]:
        ans += 1
print(ans)

Solution (Python):
s = input()
cnt = 0
for i in range(0, len(s)//2):
    if s[i] != s[len(s)-1-i]:
        cnt += 1

print(cnt)

Solution (Python):
s = input()
n = len(s)
nn = n//2
ans = 0
for i in range(nn):
    if not s[i] == s[n-i-1]:
        ans += 1

print(ans)

Solution (Python):
s=input()
leng=len(s)
lenlen=len(s)//2
count=0
for i in range(0,lenlen):
  if s[i] !=s[leng-1-i]:
    count+=1
print(count)

Solution (Python):
s = input()
s_len = int(len(s))
cnt = 0
for i in range(len(s)//2):
    if s[i]!=s[s_len-i-1]: cnt+=1
print(cnt)

Solution (Python):
N =list(input())
cnt = 0
M = len(N)
for i in range(M):
    if N[i] == N[M-1-i]:
        cnt += 1
print((M-cnt)//2)

Solution (Python):
S = input()
length = len(S)

ans = 0
for i in range(length // 2):
    if S[i] != S[length-i-1]:
        ans += 1

print(ans)

Solution (Python):
S = input()
cnt = 0

for i in range(len(S)//2):
    if S[i] != S[-(i+1)]:
        cnt += 1
print(cnt)

Solution (Python):
if __name__ == "__main__":
    s = input()
    ans = 0
    for i in range(len(s) // 2):
        if s[i] != s[len(s) - 1 - i]:
            ans += 1
    print(ans)

Solution (Python):
S = input()

cnt = 0

for i in range(len(S)//2):
    if S[i] != S[-(i+1)]:
        cnt += 1

print(cnt)

Solution (Python):
import sys, math
from pprint import pprint
input = sys.stdin.readline
rs = lambda: input().strip()
ri = lambda: int(input())
rl = lambda: list(map(int, input().split()))
mod = 10**9 + 7

S = rs()

cnt = 0
for i in range(len(S)//2):
	if S[i] != S[~i]:
		cnt += 1
print(cnt)

Solution (Python):


def main():
    S = input()
    S_re = list(reversed(S))
    S = list(S)

    cnt = 0
    for i in range(0, len(S)//2):
        if not S[i] == S_re[i]:
            cnt = cnt + 1
    print(cnt)


main()

Solution (Python):
s = list(str(input()))
count = 0
for i in range(len(s)//2):
  if s[i] != s[-(i+1)]:
    count += 1
print(count)

Solution (Python):
li = list(input())
lir = list(reversed(li))
cnt = 0
for i in range(len(li) // 2):
    if li[i] != lir[i]:
        cnt += 1
print(cnt)

Solution (Python):
def main():
    S = input()
    S1 = S[:len(S)//2]
    S2 = S[len(S)//2:][::-1]
    num_hug = 0
    for s1, s2 in zip(S1, S2):
        if s1 != s2:
            num_hug += 1
    print(num_hug)


if __name__ == "__main__":
    main()

Solution (Python):
s = input()
n = len(s)
ans = 0
for i in range(n // 2):
    if s[i] != s[n-1-i]:
        ans += 1
print(ans)

Solution (Python):
S = input()

mid = len(S) // 2
forward = S[:mid]
backward = S[mid:][::-1]

hug_num = [1 if f_c != b_c else 0 for f_c, b_c in zip(forward, backward)]

print(sum(hug_num))

Solution (Python):
S = input()

N= 0


for i in range(len(S)//2):
    if S[i] != S[-i-1]:
        N += 1

print(N)

Solution (Python):


S = input()

if len(S) % 2 == 0:
    len_half = len(S) // 2
else:
    len_half = len(S) // 2 + 1

S_front = S[:len_half]
S_back = S[len_half:][::-1]
cnt = 0

for i, j in zip(S_front, S_back):
    if i == j:
        continue
    else:
        cnt += 1

print(cnt)

Solution (Python):

S = input()

ls = list(S)

lsr = list(reversed(ls))
count = 0

for i in range(len(ls)):
  if ls[i] != lsr[i]:
    count += 1

print(count//2)

Solution (Python):

S = input()

ls = list(S)

lsr = list(reversed(ls))
count = 0
for i in range(len(ls)):
  if ls[i] != lsr[i]:
    count += 1
print(count//2)

Solution (Python):
s=input()
l=len(s)
res=0
for i in range(0,l//2):
	if not s[i]==s[l-i-1]:
		res += 1
print(res)

Solution (Python):
S=input()
hug=0
for i in range(len(S)//2):
    if S[i]!=S[len(S)-i-1]:
        hug+=1
print(hug)

Solution (Python):
s = input()
a = len(s)
if a%2==0:
  cnt=0
  for i in range (a//2):
    if(s[i]!=s[a-1-i]):
      cnt += 1
if a%2==1:
  cnt=0
  for i in range ((a-1)//2):
    if(s[i]!=s[a-1-i]):
      cnt +=1
print(cnt)

Solution (Python):
S = input()
cnt = 0
for i in range(round(len(S) / 2)):
    if S[i] != S[len(S) - 1 - i]:
        cnt += 1
print(cnt)

Solution (Python):
s = input();

if len(s) % 2 == 0:
  harf = int(len(s) / 2 - 1) + 1;
else:
  harf = int((len(s) - 1) / 2);

count = 0;
for i in range(harf):
    if s[i] != s[::-1][i]:
        count += 1;
    
print(count);

Solution (Python):
s = input()
s_reverse = s[::-1]
if len(s) %2 ==0:
    n=len(s)//2
else:
    n = len(s)//2 +1

ans = 0
for i in range(n):
    if s[i] != s_reverse[i]:
        ans+=1
print(ans)

Solution (Python):
S=input()
n=len(S)
S_inv=S[::-1]
count =0
for i in range(n//2):
  if S[i] != S_inv[i]:
    count += 1
print(count)

Solution (Python):
import math

S = input()
len_S = len(S)
half = math.floor(len_S/2)

counter = 0
for i in range(half):
    if S[i] != S[len_S-i-1]:
        counter += 1

print(counter)

Solution (Python):
S = list(input())
S1 = S[:len(S) // 2]
S2 = S[len(S) // 2:]
S2.reverse()

cnt = 0
for i in range(len(S1)):
    cnt += int(S1[i] != S2[i])

print(cnt)

Solution (Python):
s = input()
n = len(s)
a = n//2
x = 0
c = 0
while x <a:
  if s[x] != s[-x-1]:
    c += 1
  x += 1
print(c)

Solution (Python):
S = input()
c = 0
l = int(len(S)/2)
for i in range(l):
  if S[i] == S[len(S)-i-1]:
    c += 1
print(l-c)

Solution (Python):
S = input()
if len(S)%2 == 0:
  SL = S[0:len(S)//2]
  SR = S[len(S)//2:]
  SR = SR[::-1]
else:
  SL = S[0:len(S)//2+1]
  SR = S[len(S)//2:]
  SR = SR[::-1]
ans = 0
for i in range(len(SR)):
  if SL[i] != SR[i]:
    ans += 1
print(ans)

Solution (Python):
import sys
s = sys.stdin.readline().strip()
i = 0
k = -1
cnt = 0
while i < len(s)/2:
  if s[i] != s[k]:
    cnt += 1
  i += 1
  k -= 1
print(cnt)

Solution (Python):
string = list(input())

reverse_string = string[-1::-1]

count = 0
for i in range(len(string)):
    if string[i] != reverse_string[i]:
        count += 1
print(int(count/2))

Solution (Python):
s = list(input())

l = len(s)
count=0

for i in range(l//2):
  if s[i]==s[l-1-i]:
    count=count
  else:
    count+=1


print(count)

Solution (Python):
S = list(input())
cnt = 0

for i in range(len(S)//2):
  if S[i] != S[-1 - i]:
    cnt += 1

print(cnt)

Solution (Python):
S = input()
L = len(S)
cnt = 0

for i in range(L//2):
  if S[i] != S[L-1-i]:
    cnt += 1
print(cnt)

Solution (Python):
s = input()
n = len(s) // 2
a = 0
for i in range(n):
    if s[i] != s[i * (-1) - 1]:
        a += 1
print(a)

Solution (Python):
S = input()
count = 0
for i in range(0, len(S) // 2):
    if S[i] != S[len(S)-1-i]: count+=1
print(count)

Solution (Python):
S = input()
count = 0
if len(S) % 2 == 0:
  for i in range(int(len(S)/2)):
    if S[i] != S[len(S)-1-i]:
      count = count + 1
else:
  for i in range(int(len(S)/2)):
    if S[i] != S[len(S)-1-i]:
      count = count + 1
print(count)

Solution (Python):
s=input()
hug=0
for i in range(len(s)//2):
  if s[i]!=s[len(s)-1-i]:
    hug=hug+1
print(hug)

Solution (Python):
s = input()
n = len(s)
ans = 0
for i in range(n // 2):
    if s[i] != s[n - i - 1]:
        ans += 1
print(ans)

Solution (Python):
S = str(input())
ans = 0
for i in range(len(S)//2):
  if S[i] != S[len(S) - i - 1]:
    ans += 1
print(ans)

Solution (Python):
l = list(input())

cnt = 0
i = 0
n = len(l)

for i in range(n):
    if l[i] !=l[n-i-1]:
        cnt += 1
    else:
        pass

print(int(cnt/2))

Solution (Python):

s = list(input())
count = 0

for i in range(int(len(s)/2)):
    if s[i] != s[-(i+1)]:
        count += 1
print(count)

Solution (Python):
s = input()
cnt = 0
for i in range(len(s)//2):
    if s[i] == s[-(i+1)]:
        continue
    else:
        cnt += 1
    
print(cnt)

Solution (Python):
s = input()

ans = 0
for i in range(len(s)//2):
  if s[i] != s[len(s)-i-1]:
    ans +=1 
print(ans)

Solution (Python):
import math
s = input()
s_x = s[::-1]
count=0
for i in range(len(s)):
    if s[i]==s_x[i]:
        count+=0
    else:
        count+=1
print(math.floor(count/2))

Solution (Python):
s=list(input())
l=len(s)
sr=list(reversed(s))
ans=0
for i in range(l//2):
    if s[i]!=sr[i]:
        ans+=1
print(ans)

Solution (Python):
s = input()



len = int(len(s)/2)

input = s[:len]
reverse_s =s[::-1]
reverse_s=reverse_s[:len]

cnt = 0

for i in range(len):
    if input[i] != reverse_s[i]:
        cnt +=1



print(cnt)

Solution (Python):
def main():
  S = input()
  print(count(S))
def count(S):
  countnum=0
  Slen = len(S)//2
  for i in range(Slen):
    if S[i] != S[-1+i*(-1)]:
      countnum += 1
  return countnum
main()

Solution (Python):
s = list(input())
ans = 0
for i in range(len(s)//2):
  if s[i] != s[len(s)-1-i]:
    ans += 1
print(ans)

Solution (Python):
s=input()
count=0
for i in range(len(s)//2):
    if s[0+i]==s[-1-i]:
        pass
    else:
        count+=1
print(count)

Solution (Python):
s = input()
s_div = int(int(len(s)) / 2) 
s_fin = int(len(s)) - 1
counter = 0

for i in range(s_div):
  if s[i] != s[s_fin - i]:
    counter += 1
    
print(counter)