s=input() n=len(s) for w in reversed(range(1,n+1)): for l in range(n): r=l+w-1 if r