s = str(input()) C = [] cnt = 0 for c in s: if c == '…': cnt += 1 else: C.append(cnt) cnt = 0 else: C.append(cnt) res = 0 for cnt in C: res = max(res, cnt) print(res)