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