import Data.Char
f [a,b,c,d] n
 |a+b+c+d==n = show a++"+"++show b++"+"++show c++"+"++show d++"="++show n
 |a+b+c-d==n = show a++"+"++show b++"+"++show c++"-"++show d++"="++show n
 |a+b-c+d==n = show a++"+"++show b++"+"++show c++"+"++show d++"="++show n
 |a-b+c+d==n = show a++"-"++show b++"+"++show c++"+"++show d++"="++show n
 |a+b-c-d==n = show a++"+"++show b++"-"++show c++"-"++show d++"="++show n
 |a-b+c-d==n = show a++"-"++show b++"+"++show c++"-"++show d++"="++show n
 |a-b-c+d==n = show a++"-"++show b++"-"++show c++"+"++show d++"="++show n
 |otherwise = show a++"-"++show b++"-"++show c++"-"++show d++"="++show n
main=do
 s<-map digitToInt<$>getLine
 putStrLn$f s 7