s=raw_input() n=l=len(s) while n: x=n=n-1 while x