def parse_paren_group(paren_string):
    def max_depth(s):
        depth = 0
        max_depth = 0
        for c in s:
            if c == '(':
                depth += 1
                max_depth = max(max_depth, depth)
            elif c == ')':
                depth -= 1
        return max_depth

    return [max_depth(group) for group in paren_string.split(' ') if group]

