-- AtCoder My Practice
-- author: Leonardone @ NEETSDKASU

main = interact $ solve . map read . map return

solve [a,b,c,d] = ans
    where
        ops = [((+), "+"), ((-), "-")]
        ys = [ show a ++ s1 ++ show b ++ s2 ++ show c ++ s3 ++ show d
             | (op1, s1) <- ops
             , (op2, s2) <- ops
             , (op3, s3) <- ops
             , let v = a `op1` b `op2` c `op3` d
             , v == 7
             ]
        ans = head ys ++ "=7"
