import Data.Char
import Text.Printf

main = do
  [a,b,c,d] <- map digitToInt <$> getLine
  putStrLn $ f a b c d

f :: Int -> Int -> Int -> Int -> String
f a b c d
  | a + b + c + d == 7 = printf "%d+%d+%d+%d=7" a b c d
  | a + b + c - d == 7 = printf "%d+%d+%d-%d=7" a b c d
  | a + b - c + d == 7 = printf "%d+%d-%d+%d=7" a b c d
  | a + b - c - d == 7 = printf "%d+%d-%d-%d=7" a b c d
  | a - b + c + d == 7 = printf "%d-%d+%d+%d=7" a b c d
  | a - b + c - d == 7 = printf "%d-%d+%d-%d=7" a b c d
  | a - b - c + d == 7 = printf "%d-%d-%d+%d=7" a b c d
  | a - b - c - d == 7 = printf "%d-%d-%d-%d=7" a b c d
