s = input() tgt = '…' ct = 0 mx = 0 for c in s: if c == tgt: ct += 1 else: mx = max(mx, ct) ct = 0 mx = max(mx, ct) print(mx)