a=b=0 for x in input(): if x=='…':a+=1 else:b=max(b,a);a=0 print(a)