s=input() ans=0 now=0 for i in range(len(s)): if s[i] == "…": now+=1 else: now=0 ans=max(ans,now) print(ans)