x = 0 l = set() for i in input(): if i == '…': x += 1 else: l.add(x) x = 0 l.add(x) print(max(l))