Buggy python submission (verdict: Runtime Error):
def main():
  S=input()
  s=0
  N=len(S)
  for i in range(N//2):
    if S[i]!=S[N-1-i]:
      S[N-1-i]=S[i]
      s+=1
    else:
      s=s
  print(s)
main()

Fixed submission:
def main():
  S=input()
  s=0
  N=len(S)
  for i in range(N//2):
    if S[i]!=S[N-1-i]:
      s+=1
  print(s)
main()

Buggy python submission (verdict: Runtime Error):
def main():
  S=input()
  s=0
  N=len(S)
  for i in range(N//2):
    if S[i]!=S[-i-1]:
      S[-i-1]=S[i]
      s+=1
  print(s)
main()

Fixed submission:
def main():
  S=input()
  s=0
  N=len(S)
  for i in range(N//2):
    if S[i]!=S[N-1-i]:
      s+=1
  print(s)
main()

Buggy python submission (verdict: Runtime Error):
def main():
  s=0
  S=input()
  N=len(S)
  for i in range(N//2):
    if S[i]!=S[N-1-i]:
      S[i]=S[N-1-i]
      s+=1
  print(s)
main()

Fixed submission:
def main():
  S=input()
  s=0
  N=len(S)
  for i in range(N//2):
    if S[i]!=S[N-1-i]:
      s+=1
  print(s)
main()

Buggy python submission (verdict: Runtime Error):
def main():
  s=0
  S=input()
  N=len(S)
  for i in range(N//2):
    if S[i]!=S[N-1-i]:
      S[N-1-i]=S[i]
      s+=1
  print(s)
main()

Fixed submission:
def main():
  S=input()
  s=0
  N=len(S)
  for i in range(N//2):
    if S[i]!=S[N-1-i]:
      s+=1
  print(s)
main()

Buggy python submission (verdict: Runtime Error):
def main():
  s=0
  S=input()
  N=len(S)
  for i in range(N//2);
    if S[i]!=S[N-1-i]:
      S[N-1-i]=S[i]
      s+=1
  print(s)
main()

Fixed submission:
def main():
  S=input()
  s=0
  N=len(S)
  for i in range(N//2):
    if S[i]!=S[N-1-i]:
      s+=1
  print(s)
main()

Buggy python submission (verdict: Runtime Error):
def main():
  S=input()
  N=len(S)
  s=0
  for i in range(N//2):
      if S[i]!=S[-i-1]:
        S[-i-1]=S[i]
        s+=1
  print(s)
main()

Fixed submission:
def main():
  S=input()
  s=0
  N=len(S)
  for i in range(N//2):
    if S[i]!=S[N-1-i]:
      s+=1
  print(s)
main()

Buggy python submission (verdict: Runtime Error):
def main():
  S=input()
  N=len(S)
  s=0
  for i in range(N//2):
      if S[i]!=S[N-1-i]:
        S[N-1-i]=S[i]
        s+=1
     else:
       s=s
  print(s)
main()

Fixed submission:
def main():
  S=input()
  s=0
  N=len(S)
  for i in range(N//2):
    if S[i]!=S[N-1-i]:
      s+=1
  print(s)
main()

Buggy python submission (verdict: Runtime Error):
def main():
  S=input()
  N=len(S)
  s=0
  for i in range(N//2):
      if S[i]!=S[N-1-i]:
        S[N-1-i]=S[i]
        s+=1
  print(s)
main()

Fixed submission:
def main():
  S=input()
  s=0
  N=len(S)
  for i in range(N//2):
    if S[i]!=S[N-1-i]:
      s+=1
  print(s)
main()

Buggy python submission (verdict: Runtime Error):
def main():
  S=input()
  N=len(S)
  s=0
  if N%2==0:
    for i in range(N//2):
      if S[i]!=S[N-1-i]:
        S[N-1-i]=S[i]
        s+=1
  else:
     for i in range(N//2):
       if S[i]!=S[N-1-i]:
         S[N-1-i]=S[i]
         s+=1
  print(s)
main()
  
      

Fixed submission:
def main():
  S=input()
  s=0
  N=len(S)
  for i in range(N//2):
    if S[i]!=S[N-1-i]:
      s+=1
  print(s)
main()

Buggy python submission (verdict: Runtime Error):
S=input()
N=len(S)
s=0
if N%2==0:
  for i in range(0,N//2+1):
    if S[i]!=S[N-1-i]:
      S[N-1-i]=S[i]
      s+=1
  print(s)
else:
  for i in range(0,N//2):
    if S[i]!=S[N-1-i]:
      S[N-1-i]=S[i]
      s+=1
  print(s)


Fixed submission:
def main():
  S=input()
  s=0
  N=len(S)
  for i in range(N//2):
    if S[i]!=S[N-1-i]:
      s+=1
  print(s)
main()

Buggy python submission (verdict: Runtime Error):
S=input()
a=0
n=len(S)
for i in range(n):
  if S[i]!=S[n-i-1]:
    S[n-i-1]=S[i]
    a+=1
print(a)
  


Fixed submission:
def main():
  S=input()
  s=0
  N=len(S)
  for i in range(N//2):
    if S[i]!=S[N-1-i]:
      s+=1
  print(s)
main()