def dfs(i, now,  count):

    if count == len(s):

        if i == 7:

            print(str(s[0]),end="")

            for j in range(len(s)-1):

                print(now[j+1] + str(s[j+1]), end="")

            print('=7')

            exit()

    else:

        dfs(i + s[count], now + '+', count + 1)

        dfs(i - s[count], now + '-', count + 1)





s = list(map(int, input().strip()))



dfs(0, '', 0)

num = eval(input())



for mask in range(1 << 3):

    tmp = int(num[0])

    ans_str = num[0]

    for i in range(3):

        if mask >> i & 1 == 1:

            tmp += int(num[i + 1])

            ans_str += '+' + num[i + 1]

        else:

            tmp -= int(num[i + 1])

            ans_str += '-' + num[i + 1]

    if tmp == 7:

        print((ans_str + '=7'))

        exit()

def dfs(i, now, count):
    if count == len(s):
        if i == 7:
            print(str(s[0]), end="")
            for j in range(len(s) - 1):
                print(now[j + 1] + str(s[j + 1]), end="")
            print("=7")
            exit()
    else:
        dfs(i + s[count], now + "+", count + 1)
        dfs(i - s[count], now + "-", count + 1)


s = list(map(int, input().strip()))
dfs(0, "", 0)

num = eval(input())
for mask in range(1 << 3):
    tmp = int(num[0])
    ans_str = num[0]
    for i in range(3):
        if mask >> i & 1 == 1:
            tmp += int(num[i + 1])
            ans_str += "+" + num[i + 1]
        else:
            tmp -= int(num[i + 1])
            ans_str += "-" + num[i + 1]
    if tmp == 7:
        print((ans_str + "=7"))
        exit()

-def dfs(i, now, count): -    if count == len(s): -        if i == 7: -            print(str(s[0]), end="") -            for j in range(len(s) - 1): -                print(now[j + 1] + str(s[j + 1]), end="") -            print("=7") -            exit() -    else: -        dfs(i + s[count], now + "+", count + 1) -        dfs(i - s[count], now + "-", count + 1) - - -s = list(map(int, input().strip())) -dfs(0, "", 0) +num = eval(input()) +for mask in range(1 << 3): +    tmp = int(num[0]) +    ans_str = num[0] +    for i in range(3): +        if mask >> i & 1 == 1: +            tmp += int(num[i + 1]) +            ans_str += "+" + num[i + 1] +        else: +            tmp -= int(num[i + 1]) +            ans_str += "-" + num[i + 1] +    if tmp == 7: +        print((ans_str + "=7")) +        exit()