a=input() cnt=0 M=0 b=True for i in range(len(a)): if a[i]=='…': cnt+=1 M=max(cnt,M) else: cnt=0 print(M)