s=input() cnt=0 hoge=0 for i in s: if i=='…': cnt+=1 else: hoge=max(cnt,hoge) cnt=0 hoge=max(cnt,hoge) print(hoge)