import Data.Char
import Data.Bits

printWithSign :: Int -> String
printWithSign x
    | x >= 0 = "+" ++ show x
    | x < 0 = show x

solve :: [Int] -> Int -> [[Int]]
solve xs i = [l | j <- [0..i], let l = loop xs j, sum l == 7]
    where
        loop :: [Int] -> Int -> [Int]
        loop [x] _ = [x]
        loop (x:y:xs) i
            | i .&. 1 == 1 = x : loop (y:xs) (shiftR i 1)
            | otherwise = x : loop (negate y:xs) (shiftR i 1)

main = do
    xs <- map digitToInt <$> getLine :: IO [Int]
    let [a,b,c,d] = head $ solve xs (2^(length xs - 1) - 1)
    putStr $ show a
    putStr $ printWithSign b
    putStr $ printWithSign c
    putStr $ printWithSign d
    putStrLn  "=7"