s=input() n=len(s) i=0 cnt=0 ans=0 while i < n: if i