c=m=0 for i in input()+' ': if i=='…':c+=1 else:m,c=max(c,m),0 print(m)