Imports System
Public Class C300
    Public Shared Sub Main()
        Dim N As Integer
        N = Console.ReadLine()
        Dim a, b, c, d As Integer
        d = N Mod 10
        c = ((N - d) / 10) Mod 10
        b = ((N - d - 10 * c) / 100) Mod 10
        a = (N - d - 10 * c - 100 * b) / 1000
        Dim op(2) As Boolean
        For i As Integer = 0 To 1
            For j As Integer = 0 To 1
                For k As Integer = 0 To 1
                    If a + (-1) ^ i * b + (-1) ^ j * c + (-1) ^ k * d = 7 Then
                        op(0) = Bool(i)
                        op(1) = Bool(j)
                        op(2) = Bool(k)
                    End If
                Next
            Next
        Next
        Dim output As String
        output = a & Operate(op(0)) & b & Operate(op(1)) & c & Operate(op(2)) & d & "=7"
        Console.WriteLine(output)
    End Sub
    Public Shared Function Operate(input As Boolean) As String
        If input Then
            Return "-"
        Else
            Return "+"
        End If
    End Function
    Public Shared Function Bool(input As Integer) As Boolean
        Select Case input
            Case 0
                Return False
            Case 1
                Return True
            Case Else
                Return -1
        End Select
    End Function
End Class
