implicit none
integer :: a,b,c,d
character(4) :: s
character(1) :: op1,op2,op3
read *,s
read(s(1:1),*) a
read(s(2:2),*) b
read(s(3:3),*) c
read(s(4:4),*) d

if      (a+b+c+d==7) then
  op1 = '+'
  op2 = '+'
  op3 = '+'
else if (a+b+c-d==7) then
  op1 = '+'
  op2 = '+'
  op3 = '-'
else if (a+b-c+d==7) then
  op1 = '+'
  op2 = '-'
  op3 = '+'
else if (a+b-c-d==7) then
  op1 = '+'
  op2 = '-'
  op3 = '-'
else if (a-b+c+d==7) then
  op1 = '-'
  op2 = '+'
  op3 = '+'
else if (a-b+c-d==7) then
  op1 = '-'
  op2 = '+'
  op3 = '-'
else if (a-b-c+d==7) then
  op1 = '-'
  op2 = '-'
  op3 = '+'
else if (a-b-c-d==7) then
  op1 = '-'
  op2 = '-'
  op3 = '-'
endif

print '(i0,1a,i0,1a,i0,1a,i0,a)', a,op1,b,op2,c,op3,d,'=7'
end