a = input() b = [] t = 0 for i in a: if i == '…' or i == '…': t += 1 else: b.append(t) t = 0 if b == []: print(len(a)) else: print(max(b))