s=input();n=len(s);ans=0 for i in range(n): cnt=1 j=1 while 0<=i-j and i+j