S = input() c = [0 for i in range(len(S)+1)] for i, s in enumerate(S): if s == '…': c[i+1] = c[i] + 1 print(max(c))