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