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