s = input() n = 0 cnt = [] for i in range(len(s)): if s[i] == '…' : n += 1 else: cnt.append(n) n = 0 cnt.append(n) print(max(cnt))