(defn create-data [s]
  (map #(Long/parseLong %) (.split s "")))

(defn kinniku [a b c d]
  (cond
        (= (+ (+ (+ a b) c) d) 7) "%d+%d+%d+%d=7"
        (= (- (+ (+ a b) c) d) 7) "%d+%d+%d-%d=7"
        (= (+ (- (+ a b) c) d) 7) "%d+%d-%d+%d=7"
        (= (- (- (+ a b) c) d) 7) "%d+%d-%d-%d=7"
        (= (+ (+ (- a b) c) d) 7) "%d-%d+%d+%d=7"
        (= (- (+ (- a b) c) d) 7) "%d-%d+%d-%d=7"
        (= (+ (- (- a b) c) d) 7) "%d-%d-%d+%d=7"
        (= (- (- (- a b) c) d) 7) "%d-%d-%d-%d=7"
        :else ""))

(defn trainTicket [[a b c d]]
  (format (kinniku a b c d) a b c d))

(println (trainTicket (create-data (read-line))))