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