S=input() N=len(S) st=set() for i in range(1<