def solve(): S = input() n = 0 ans = 0 for c in S: if c == '…': n += 1 ans = max(ans, n) else: n = 0 print(ans) if __name__ == '__main__': solve()