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