S = input() N = len(S) ma = 0 m = 0 for c in S: if c == '…': m += 1 ma = max(ma, m) else: m = 0 print(ma)