s = list(input()) r, sigh= 0, False for i in s: if i == '…': if sigh:sub = sub + 1 if not sigh:sub, sigh = 1, True else: if sigh:r, sigh = max(r,sub), False print(r)