s=list(input()) n=len(s) ans=0 tmp=0 chk=False for i in s: if chk: if i=="…": tmp+=1 else: ans=max(ans,tmp) tmp=0 chk=False else: if i=="…": tmp=1 chk=True else: continue ans=max(ans,tmp) print(ans)