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