Sitting in a station waiting room, Joisino is gazing at her train ticket.  The ticket is numbered with four digits A, B, C and D in this order, each between 0 and 9 (inclusive).  In the formula A op1 B op2 C op3 D = 7, replace each of the symbols op1, op2 and op3 with `+` or `-` so that the formula holds.  The given input guarantees that there is a solution. If there are multiple solutions, any of them will be accepted.
n = int(input())
s = []
for i in range(4):
	s.append(n//(10**i)-(n//(10**(i+1)))*10)
s.reverse()
if s[0]+s[1]+s[2]+s[3]==7:
	print(s[0],"+",s[1],"+",s[2],"+",s[3],"=7")
elif s[0]+s[1]+s[2]-s[3]==7:
	print(s[0],"+",[1],"+",s[2],"+",s[3],"=7")
elif s[0]+s[1]-s[2]+s[3]==7:
	print(s[0],"+",s[1],"-",s[2],"+",s[3],"=7")
elif s[0]+s[1]-s[2]-s[3]==7:
	print(s[0],"+",s[1],"-",s[2],"-",s[3],"=7")
elif s[0]-s[1]+s[2]+s[3]==7:
	print(s[0],"-",s[1],"+",s[2],"+",s[3],"=7")
elif s[0]-s[1]+s[2]-s[3]==7:
	print(s[0],"-",s[1],"+",s[2],"-",s[3],"=7")
elif s[0]-s[1]-s[2]+s[3]==7:
	print(s[0],"-",s[1],"-",s[2],"+",s[3],"=7")
elif s[0]-s[1]-s[2]-s[3]==7:
	print(s[0],"-",s[1],"-",s[2],"-",s[3],"=7")



n = int(input())
s = []
for i in range(4):
	s.append(n//(10**i)-(n//(10**(i+1)))*10)
s.reverse()

def sgn(i):
	if i==0:
		return 1
	else:
		return -1

x = []
m = 0

for i in range(2):
	for j in range(2):
		for k in range(2):
			m +=1
			x.append(s[0]+s[1]*sgn(i)+s[2]*sgn(j)+s[3]*sgn(k))

z = x.index(7)
u = []
for i in range(3):
	u.append(z//(2**i)-(z//(2**(i+1)))*2)
u.reverse()

def ppp(i):
	if i==0:
		return "+"
	else:
		return "-"
print(s[0],ppp(u[0]),s[1],ppp(u[1]),s[2],ppp(u[2]),s[3],"=7",sep="")