def Main(): s=input() n=len(s) i=0 while i