L = [] c = 0 for s in input(): if s == '…': c += 1 L += [c] else: c = 0 L += [c] print(max(L))