import sys input = sys.stdin.readline S=input().strip() ANS=0 for i in range(len(S)): j=len(S)-1-i if i