Problem: Barbara was late for her math class so as a punishment the teacher made her solve the task on a sheet of paper. Barbara looked at the sheet of paper and only saw n numbers a_1, a_2, …, a_n without any mathematical symbols. The teacher explained to Barbara that she has to place the available symbols between the numbers in a way that would make the resulting expression's value as large as possible. To find out which symbols were available the teacher has given Barbara a string s which contained that information.

<image>

It's easy to notice that Barbara has to place n - 1 symbols between numbers in total. The expression must start with a number and all symbols must be allowed (i.e. included in s). Note that multiplication takes precedence over addition or subtraction, addition and subtraction have the same priority and performed from left to right. Help Barbara and create the required expression!

Input

The first line of the input contains a single integer n (1 ≤ n ≤ 10^5) — the amount of numbers on the paper.

The second line of the input contains n integers a_1, a_2, …, a_n (0 ≤ a_i ≤ 9), where a_i is the i-th element of a.

The third line of the input contains the string s (1 ≤ |s| ≤ 3) — symbols allowed in the expression. It is guaranteed that the string may only consist of symbols "-", "+" and "*". It is also guaranteed that all symbols in the string are distinct.

Output

Print n numbers separated by n - 1 symbols — a mathematical expression with the greatest result. If there are multiple equally valid results — output any one of them.

Examples

Input


3
2 2 0
+-*


Output


2*2-0


Input


4
2 1 1 2
+*


Output


2+1+1+2

Note

The following answers also fit the first example: "2+2+0", "2+2-0", "2*2+0".

Solution (in PYTHON3):

Solution:
# n = 10
# A = [random.randint(0, 9) for i in range(10)]
# symbols = ["+", "*"]

n = int(input())
A = list(map(int, input().split()))
symbols = list(input())


def solve1(array):
    # "+" or "*"
    # 2+1+1+1+1+1+2
    # 2*1*1*1*2

    j = 0
    # we need to break everything into components deprived of 0s
    solution = []
    first = True
    while (j < len(array)):
        i = j
        if not first:
            solution.append("+")
        first = False
        if array[j] == 0:
            j += 1
            while (j < len(array) and array[j] == 0):
                j += 1
            j -= 1
            solution.extend(list("+".join(["0"] * (j - i + 1))))
        else:
            j += 1
            while (j < len(array) and array[j] != 0):
                j += 1
            j -= 1
            sol = solve11(array[i:j + 1])
            solution.extend(sol)
        j += 1
    return "".join(list(map(str, solution)))


def solve11(array):
    count = 0
    first_different_from_one_prefix = 0
    for i in range(len(array)):
        if array[i] != 1:
            break
        else:
            first_different_from_one_prefix = i + 1
    array = array[first_different_from_one_prefix:]
    first_part = "+".join(["1"] * (first_different_from_one_prefix))

    first_different_from_one_suffix = len(array) - 1
    for i in range(len(array) - 1, -1, -1):
        if array[i] != 1:
            break
        else:
            first_different_from_one_suffix = i - 1

    second_part = "+".join(["1"] * (len(array) - 1 - first_different_from_one_suffix))
    array = array[:first_different_from_one_suffix + 1]

    SOLUTION = []
    if len(array) > 0:
        for i in range(0, len(array)):
            if array[i] > 2:
                count += 1
        # Question is : is it better to use a * or a  + at given empty space ?
        # if subproblem contains more than 20 numbers it's always better to use *
        if count >= 20:
            SOLUTION.extend(list("*".join(list(map(str, array)))))
            SOLUTION = SOLUTION[::-1]
        else:
            # we need dp here
            DP = [0 for i in range(len(array))]
            DP_PARENTS = [-1 for i in range(len(array))]
            DP[0] = array[0]
            for i in range(0, len(array)):
                if array[i] == 1:
                    DP[i] = DP[i - 1] + 1
                    DP_PARENTS[i] = i - 1
                    continue
                else:
                    PROD = 1
                    for k in range(i - 1, -2, -1):
                        PROD *= array[k + 1]
                        if k == -1:
                            if DP[i] < PROD:
                                DP[i] = PROD
                                DP_PARENTS[i] = k
                        elif DP[i] < DP[k] + PROD:
                            DP[i] = DP[k] + PROD
                            DP_PARENTS[i] = k

            # we need to construct the solution
            current = len(array) - 1

            while (current != -1):

                k = DP_PARENTS[current]
                for i in range(current, k, -1):
                    SOLUTION.append(array[i])
                    SOLUTION.append("*")
                SOLUTION.pop()
                SOLUTION.append("+")
                current = k
            SOLUTION.pop()

    RESULT = ""
    SOLUTION = list(map(str, SOLUTION[::-1]))
    parts = [first_part, "".join(SOLUTION), second_part]
    parts = [part for part in parts if part != ""]
    return "+".join(parts)


# print(solve11([7, 8, 3, 8, 6, 3, 3, 6, 5, 5, 7, 3, 8, 8, 7, 7, 4, 3, 3, 3]))
# print(solve11([6, 4, 8, 7, 9, 9, 8, 6, 8, 1, 6, 6, 8, 3, 5, 3, 4, 4, 1, 3]))
# print("hum")

def solve2(array):
    # "-" or "*"
    # 2+1*5-0*2*6*1*1
    # when meet zero take -
    # after 0 take *
    current = 0
    solution = []
    first_zero = None
    array = list(map(str, array))
    while (current < len(array) and array[current] != '0'):
        current += 1
    if current == len(array):
        if array[-1] == '0':
            return "*".join(array[:-1]) + "-0"
        else:
            return "*".join(array)
    else:
        if current != 0:
            return "*".join(array[0:current]) + "-" + "*".join(array[current:])
        else:
            return "*".join(array[current:])


MY_SOLUTION = None
if len(symbols) == 1:
    MY_SOLUTION = symbols[0].join(list(map(str, A)))
if len(symbols) == 2:
    if "+" in symbols and "-" in symbols:
        MY_SOLUTION = "+".join(list(map(str, A)))
    if "+" in symbols and "*" in symbols:
        MY_SOLUTION = solve1(A)
    if "*" in symbols and "-" in symbols:
        MY_SOLUTION = solve2(A)

if len(symbols) == 3:
    MY_SOLUTION = solve1(A)
print(MY_SOLUTION)