main=getLine>>=putStrLn.f
 where f s = g 0 0 0 (read[s!!0]) (read[s!!1]) (read[s!!2]) (read[s!!3])
       g i j k a b c d | a+(-1)^i*b+(-1)^j*c+(-1)^k*d==7 = (show a)++(h i)++(show b)++(h j)++(show c)++(h k)++(show d)++"=7"
                       | k==0 = g i j 1 a b c d
                       | j==0 = g i 1 0 a b c d
                       | i==0 = g 1 0 0 a b c d
       h n = if n==0 then"+"else"-"