S = input() out = 0 cnt = 0 for i in range(len(S)): if S[i] == '…': cnt += 1 else: cnt = 0 out = max(cnt, out) print(out)