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