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