stdin.ReadLine()
|> fun x ->
    x
    |> Seq.map (string >> int)
    |> Seq.toArray
    |> fun x -> (x.[0], x.[1], x.[2], x.[3])
    |> fun (a, b, c, d) -> (
        match (a, b, c, d) with
        | _ when a + b + c + d = 7 -> sprintf "%d+%d+%d+%d" a b c d
        | _ when a + b + c - d = 7 -> sprintf "%d+%d+%d-%d" a b c d
        | _ when a + b - c + d = 7 -> sprintf "%d+%d-%d+%d" a b c d
        | _ when a + b - c - d = 7 -> sprintf "%d+%d-%d-%d" a b c d
        | _ when a - b + c + d = 7 -> sprintf "%d-%d+%d+%d" a b c d
        | _ when a - b + c - d = 7 -> sprintf "%d-%d+%d-%d" a b c d
        | _ when a - b - c + d = 7 -> sprintf "%d-%d-%d+%d" a b c d
        | _ when a - b - c - d = 7 -> sprintf "%d-%d-%d-%d" a b c d
    )
    |> printfn "%s=7"
