s=input()+"a" p,q=0,0 for i in s: if i=="…": p+=1 else: if p>0: q=max(q,p) p=0 print(q)