from itertools import product n = int(input()) tot = int(input()) a = '(' * (n - 1) + input().replace(' ', ')%c') for p in product('+*', repeat=n-1): if eval(a % p) == tot: print(''.join(p)) break