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):
INT = lambda: int(input())
INTM = lambda: map(int,input().split())
STRM = lambda: map(str,input().split())
STR = lambda: str(input())
LIST = lambda: list(map(int,input().split()))
LISTS = lambda: list(map(str,input().split()))
def do():
    s=STR()
    l=len(s)
    ct=0
    for i in range(l//2):
        if s[i]!=s[-1-i]:
            ct+=1
    print(ct)
if __name__ == '__main__':
    do()

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

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

Solution (Python):
S= input()

count=0
N=len(S)

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

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

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

Solution (Python):
S = input()
n = len(S)
ans = 0

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

print(ans)

Solution (Python):
import sys
import numpy as np

sr = lambda: sys.stdin.readline().rstrip()
ir = lambda: int(sr())
lr = lambda: list(map(int, sr().split()))

S = np.array(list(sr()))
length = len(S)
answer = np.count_nonzero(S[:length//2] != S[::-1][:length//2])
print(answer)

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

t = list(reversed(s))

x = 0

for i in range(len(s)):
    if s == list(reversed(s)):
        break

    if s[i] != t[i]:
        s[i] = t[i]
        x += 1
        
print(x)

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

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


if N % 2 == 0:
    div = int(N / 2)
else:
    div = int(N // 2)


S_pic = S[:div]
S_rev = list(reversed(S[div:]))




count = 0
for i in range(div):
    if S_pic[i] != S_rev[i]:
        count += 1

print(count)

Solution (Python):
s = list(input())
s_len = len(s)
ans = 0
if s_len % 2 == 0:
  for i, j in zip(s[0 : (s_len // 2 )], reversed(s[(s_len // 2) : s_len + 1])):
    if i != j:
      ans += 1
else:
  for i, j in zip(s[0 : (s_len // 2  )], reversed(s[(s_len // 2 + 1) : s_len])):
    if i != j:
      ans += 1
print(ans)

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=input()
print(sum(a!=b for a,b in zip(S,S[::-1]))//2)

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

Solution (Python):
s = input()

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

Solution (Python):
s = list(input())
if len(s)%2 == 1:
    s.pop(len(s)//2)

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)]:
        ans += 1
print(ans)

Solution (Python):
S=list(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[-1-i]:
        ans += 1
print(ans)

Solution (Python):
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()
a = 0
for i in range(len(s)):
    if s[i] != s[-i-1]:
        a += 1
print(a//2)

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

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

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

cnt = 0

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

print(cnt)

Solution (Python):
s = input()
ans = 0

for i in range (int(len(s)/2)):
  if s[i] == s[-i-1]:
    continue
  else:
    ans = ans + 1

print(ans)

Solution (Python):
import math
from functools import reduce
from collections import deque
import sys
sys.setrecursionlimit(10**7)


def get_nums_l():
    return [ int(s) for s in input().split(" ")]


def get_nums_n(n):
    return [ int(input()) for _ in range(n)]


def get_all_int():
    return map(int, open(0).read().split())

def log(*args):
    print("DEBUG:", *args, file=sys.stderr)

s = input()
t = s[::-1]

n = len(s)

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

print(ans//2)

Solution (Python):
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=str(input())
a=list(s)
b=len(a)
cnt=0
for i in range(b//2):
    if s.find(a[i],b-i-1,b-i)==-1:cnt+=1
    
print(cnt)

Solution (Python):
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()
count=0
for i in range(0, len(S)//2):
    if S[i]!=S[-i-1]:
        count+=1
print(count)

Solution (Python):
a = input()
n = len(a)
ans = 0

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

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

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

Solution (Python):
s = input()

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

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()
n = len(s)

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

print(ans)

Solution (Python):
S=input()
ans=0
N=len(S)

M=N//2

for i in range(M):
    if S[i]!=S[N-1-i]:
        ans+=1
print(ans)

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

Solution (Python):

S = input()
n = len(S)
count =0
if n%2==1:
    S1 = S[:n//2]
    S2 = S[((n+3)//2)-1:][::-1]
    for i in range(n//2):
        if S1[i]!=S2[i]:
            count +=1
elif n%2 ==0:
    S1 = S[:n//2]
    S2 = S[n//2:][::-1]
    for i in range(n//2):
        if S[i]!=S2[i]:
            count+=1
print(count)

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

for a, b in zip(S, S[::-1]):
    if a != b:
        ans += 1
print(ans // 2)

Solution (Python):
s=input()
n=len(s)
rs=s[::-1]
count=0
for i in range(n//2):
  if(s[i]!=rs[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 = input()
if len(s) % 2 == 0:
  n = len(s)
  f = list(s[0:int(n/2)])
  l = list(s[int(n/2):n])
else:
  n = len(s)-1
  f = list(s[0:int(n/2)])
  l = list(s[int(n/2)+1:n+1])
ans = 0
for i in range(len(f)):
  if f[i] != l[len(f)-1-i]:
    ans += 1
print(ans)

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

out = 0
for i in range(len(S)):
  if S[i] != S_inv[i]:
    out = out + 1

out = out // 2




print(out)

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

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 = list(input())
N = -1
for i in range(len(S)):
  N += 1
cnt = 0
for i in range(len(S) // 2):
  if S[i] != S[N - i]:
    cnt += 1
print(cnt)

Solution (Python):
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()
mid_e = int(len(s) / 2)
if len(s) % 2 == 0:
    mid_s = mid_e - 1
else:
    mid_s = mid_e
first = s[:mid_e]
second = s[len(s):mid_s:-1]
count = 0
for i in range(len(first)):
    if first[i] != second[i]:
        count += 1
print(count)

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()

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

print(cnt)

Solution (Python):
import math

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

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

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

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

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

print(c)

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

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

print(c)

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

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

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

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

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()
N = len(S) 

left_S = S[:int(N // 2)]
right_S = S[int((N + 1) // 2):]

right_S = ''.join(list(reversed(right_S)))

count = 0

for i in range(len(left_S)):
    if left_S[i] != right_S[i]:
        count += 1
        
print(count)

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

Solution (Python):
a=list(input())
b=[0]*len(a)
for k in range(0,len(a)):
  b[k]=a[k]
b.reverse()

count=0
for k in range(0,int(len(a)/2)):
  if a[k]!=b[k]:
    count=count+1
print(count)

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

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

Solution (Python):
S = input()

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

print(count)

Solution (Python):
import sys

def input(): return sys.stdin.readline().rstrip()
sys.setrecursionlimit(10 ** 7)

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

Solution (Python):
def kaibun(data):
    str1 = data
    str2 = data[::-1]

    count = 0
    for i in range(round(len(str1)/2)):
        if str1[i] != str2[i]:
            count += 1

    return count 

input_data = input()

print(kaibun(input_data))

Solution (Python):
s = input()
count = 0

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

print(count)

Solution (Python):

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

Solution (Python):

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

Solution (Python):

s = input()
a = 0
b = len(s) - 1
l = int(len(s) / 2)
ans = 0
for _ in range(l):
    if s[a] != s[b]:
        ans += 1
    a += 1
    b -= 1
print(ans)

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

Solution (Python):
a = input()

c = len(a) // 2
if len(a) % 2 == 0:
    x = a[:c]
    y = a[c :]
    z = y[::-1]

else:
    x = a[:c]
    y = a[c + 1:]
    z = y[::-1]

ans = 0

for i in range(len(a)//2):
    if x[i] != z[i]:
        ans += 1

print(ans)

Solution (Python):
def main():
    S = input()
    N = len(S)
    l, r = 0, N-1
    res = 0
    while l < r:
        lc = S[l]
        rc = S[r]
        if lc != rc:
            res += 1
        l += 1
        r -= 1

    print(res)

    

main()

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

Solution (Python):
s = str(input())
print(sum(i < j for i,j in zip(s, s[::-1])))

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

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

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

Solution (Python):
s = 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()

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

Solution (Python):






import sys
input = sys.stdin.readline

import math
from collections import deque
from fractions import gcd
from functools import lru_cache






MOD = 10**9 +7
INF = float('inf')






def inputI(): return int(input().strip())
def inputS(): return input().strip()
def inputIL(): return list(map(int,input().split()))
def inputSL(): return list(map(str,input().split()))
def inputILs(n): return list(int(input()) for _ in range(n))
def inputSLs(n): return list(input().strip() for _ in range(n))
def inputILL(n): return [list(map(int, input().split())) for _ in range(n)]
def inputSLL(n): return [list(map(str, input().split())) for _ in range(n)]


def inv(n): return pow(n, MOD-2, MOD)


kaijo_memo = []
def kaijo(n):
  if(len(kaijo_memo) > n):
    return kaijo_memo[n]
  if(len(kaijo_memo) == 0):
    kaijo_memo.append(1)
  while(len(kaijo_memo) <= n):
    kaijo_memo.append(kaijo_memo[-1] * len(kaijo_memo) % MOD)
  return kaijo_memo[n]

gyaku_kaijo_memo = []
def gyaku_kaijo(n):
  if(len(gyaku_kaijo_memo) > n):
    return gyaku_kaijo_memo[n]
  if(len(gyaku_kaijo_memo) == 0):
    gyaku_kaijo_memo.append(1)
  while(len(gyaku_kaijo_memo) <= n):
    gyaku_kaijo_memo.append(gyaku_kaijo_memo[-1] * pow(len(gyaku_kaijo_memo),MOD-2,MOD) % MOD)
  return gyaku_kaijo_memo[n]

def nCr(n,r):
  if(n == r):
    return 1
  if(n < r or r < 0):
    return 0
  ret = 1
  ret = ret * kaijo(n) % MOD
  ret = ret * gyaku_kaijo(r) % MOD
  ret = ret * gyaku_kaijo(n-r) % MOD
  return ret


def factorization(n):
    arr = []
    temp = n
    for i in range(2, int(-(-n**0.5//1))+1):
        if temp%i==0:
            cnt=0
            while temp%i==0:
                cnt+=1
                temp //= i
            arr.append([i, cnt])
    if temp!=1:
        arr.append([temp, 1])

    if arr==[]:
        arr.append([n, 1])
    return arr


def lcm(a, b):
    return a * b // gcd (a, b)





s = inputS()

s = list(s)
s_ = s[::-1]

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

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

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=input()
print(sum(s[i]!=s[-i-1] for i in range(len(s)//2)))

Solution (Python):
from collections import defaultdict, deque
import sys, heapq, bisect, math, itertools, string, queue, copy, time
from fractions import gcd
import numpy as np
sys.setrecursionlimit(10**8)
INF = float('inf')
MOD = 10**9+7
EPS = 10**-7
def inp(): return int(sys.stdin.readline())
def inpl(): return list(map(int, sys.stdin.readline().split()))
def inpl_str(): return list(sys.stdin.readline().split())

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()
c = 0

if len(s) % 2 == 0:
    for i in range(len(s)//2,len(s)):
        if s[i] == s[-i-1]:
            pass
        else:
            c += 1
            
else:
    for i in range(len(s)//2 + 1,len(s)):
        if s[i] == s[-i-1]:
            pass
        else:
            c += 1
            
print(c)

Solution (Python):
s = input()
t = s[::-1]
res = 0
for a, b in zip(s, t):
    if not a == b:
        res += 1
print(res//2)

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[len(s)-1-i]:
        count+=1
print(count)

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

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

Solution (Python):
s = input()
s_rev = ''.join(list(reversed(s)))

ret = 0

for i in range(len(s)):
    if s[i] != s_rev[i]:
        ret += 1

print(ret // 2)

Solution (Python):
import sys

input = sys.stdin.readline

S = input().strip()
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()
le = len(s)//2
ans = 0

for i in range(le):
  if s[i] != s[-i-1]:
    ans += 1
print(ans)

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

while(True):
  if(len(s)<=1):
    break
 
  if(s[0] != s[-1]):
    cnt+=1
  s = s[1:-1]
 
  
print(cnt)

Solution (Python):














s = input()




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

print(count)

Solution (Python):
s = input().rstrip()

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

Solution (Python):
S = input()

l = [s != r for s, r in zip(S, S[::-1])]
print(sum(l)//2)

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

count = 0
for org, reverse in zip(S, r_S):
    if org != reverse:
        count += 1
        
print(count//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):
def main():
    
    s = str(input())

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

if __name__ == '__main__':
    main()

Solution (Python):
S = list(input())
D = list(S)[::-1]
n = 0
for i in range(len(S)):
  if S[i] != D[i]:
    n += 1
print(int(n/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()
ans = 0
for i in range(0, len(s)//2):
    if s[i] != s[-i-1]:
        ans += 1
print(ans)

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

Solution (Python):
S=input()
if(len(S)%2==0):
  num=len(S)//2-1
  A=S[:num+1]
  B=S[num+1:]
else:
  num=len(S)//2
  A=S[:num+1]
  B=S[num:]

B=B[::-1]
count=0
for i in range(len(A)):
  if(A[i]!=B[i]):
    count+=1
print(count)

Solution (Python):
x=list(input())
y=len(x)
ans=0
for i in range(0,((y//2))):
	if x[i]!=x[-(i+1)]:
		ans=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[len(s) - i - 1]:
        ans += 1
    

print(ans)

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

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 = input()
print(sum([s[i] != s[-(i + 1)] for i in range(len(s) // 2)]))

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

Solution (Python):
S = 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()
G = len(S)//2
ans = 0
for i in range(G):
  if S[i] != S[-i-1]:
    ans += 1
print(ans)

Solution (Python):

S = input()


S_list = list(S)
ans = 0

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

Solution (Python):
import sys
input = lambda: sys.stdin.readline().rstrip()
input_nums = lambda: list(map(int, input().split()))

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

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

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):
import math
s=input()
l=int(len(s)/2)
ans=0
for i in range(l):
    if s[i] == s[-(i+1)]:
        pass
    else:
        ans+=1
print(ans)

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

Solution (Python):
import sys

stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline().rstrip()  

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):
palindrome = list(input())
half = len(palindrome) // 2
lst = list()

for i in range(half):
    if palindrome[i] != palindrome[len(palindrome) - i - 1]:
        lst.append(palindrome[i])
print(len(lst))

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

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

Solution (Python):
S = input()

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

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

Solution (Python):
s = str(input())
t = "".join(list(reversed(s)))
ans = [1 for i in range((len(s)+1)//2) if s[i] != t[i]]
print(sum(ans))

Solution (Python):
s=list(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=input()
ans=0
a=len(S)/2
if len(S)%2==0:
	S1=S[:int(len(S)/2)]
	S2=S[int(len(S)/2):]
else:
	S1=S[:int(len(S)/2)]
	S2=S[int(len(S)/2)+1:]
S3 = S2[::-1]
for i,j in zip(S1,S3):
	if i!=j:
		ans+=1
print(ans)

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

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

Solution (Python):
s = input()

count = 0

while(True):
    if len(s) <= 1:
        break
    if s[0] != s[-1]:
        count +=1
    s = s[1:-1]

print(count)

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

Solution (Python):
S = input()
ans = 0
for i in range(len(S)):
    if S[i] != S[-(i+1)]:
        ans += 1
print(int(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())
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()
S = [i for i in S]
N = len(S)
cnt = 0

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

print(cnt)

Solution (Python):

"""
Created on Thu Mar 12 01:53:56 2020

@author: Kanaru Sato
"""

s = input()
hag = 0

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


print(hag)

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

Solution (Python):
S=input()
T=S[::-1]
K=0

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

print(K)

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

Solution (Python):
def solve():
    S = input()
    a = list(S)
    b = list(S)
    a.reverse()
    c = 0
    for i in range(len(S)):
        if a[i] != b[i]:
            c += 1
    
    return c // 2

print(solve())

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

Solution (Python):
s = input()
cnt = 0
for i in range(len(s)//2):
    
    if not s[i]==s[-1-i]:
        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):
import math

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

Solution (Python):
def main():
    str = input()
    num = int(len(str)/2)
    dflg = int(len(str)%2)
    array1=[]
    array2=[]
    
    if dflg == 0:
        for i in range(num):
        	array1.append(str[i])
        for i in range(num, len(str)):
            array2.append(str[i])
    else:
        for i in range(num):
            	array1.append(str[i])
        for i in range(num+1, len(str)):
                array2.append(str[i])

    cnt = 0
    rev_array = array1[::-1]

    for i in range(num):
        if rev_array[i] != array2[i]:
            cnt = cnt+1
    
    print(cnt)

if __name__ == "__main__":
    main()

Solution (Python):
cmin = lambda a,b : a if a<b else b
cmax = lambda a,b : a if a>b else b
iin = lambda : int(input())
lin = lambda : list(map(int,input().split()))
rin = lambda n : [int(input()) for _ in range(n)]

s = input()

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

print(count)

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 = 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())
cnt = 0
for i in range(len(S)//2):
    if S[i] != S[len(S)-i-1]:
        cnt +=1
print(cnt)

Solution (Python):
s = input()

s_len = len(s)

is_even = False

if s_len % 2 == 0:
    is_even = True

half_s_len = s_len // 2


if is_even:
    s_len_half = half_s_len
    mae = s[:half_s_len]
    ato = s[s_len_half:]
else:
    s_len_half = half_s_len + 1
    mae = s[:half_s_len]
    ato = s[s_len_half:]


ato_gya9 = ato[::-1]


count = 0

x = len(mae)

for i in range(x):
    if mae[i] != ato_gya9[i]:

        count += 1

print(count)

Solution (Python):
ans=0
s=input()
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:
    l = len(s) // 2
else:
    l = (len(s) // 2) + 1

ans = 0

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

print(ans)

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

Solution (Python):
import sys
stdin = sys.stdin
mod = 10**9 + 7

def ns(): return stdin.readline().rstrip()
def ni(): return int(ns())
def na(): return list(map(int, stdin.readline().split()))

s = ns()
cnt = 0
for si, sj in zip(s, reversed(s)):
    if si != sj:
        cnt += 1
print(cnt//2)

Solution (Python):
import math
def solve():
    S = list(input())

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

if __name__ == '__main__':
    solve()

Solution (Python):
S=list(input())
A=len(S)//2
count=0
for i in range(A):
    if S[i]!=S[len(S)-1-i]:
        count=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 = input()

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

print(ans)

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

print(a)

Solution (Python):
s = str(input())
r_s = s[::-1]
cnt = 0

for i in range(len(s) // 2):
    if s[i] != r_s[i]:
        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()
a = 0
for i in range(len(s)//2):
    if s[i]!=s[len(s)-i-1]:
        a += 1
    else :
        continue
print(a)

Solution (Python):
def main(s):
    isEven = int(len(s)%2)
    ran = int((len(s)-1)/2 if isEven else (len(s)/2))
    count = 0
    for i in range(ran):
        if s[i] != s[-(i+1)]:
            count += 1
    return count

s = input()
print(main(s))

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

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

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

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

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

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