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