import java.util.*;

public class Main {

  public static void main (String[] args) {

    Scanner sc = new Scanner(System.in);
    
    String abcd = sc.next();
    sc.close();

    String[] ABCD = abcd.split("");

    String result = "";
    
    int[] ans = new int[8];

    ans[0] = Integer.valueOf(ABCD[0]) + Integer.valueOf(ABCD[1]) + Integer.valueOf(ABCD[2]) + Integer.valueOf(ABCD[3]);
    ans[1] = Integer.valueOf(ABCD[0]) + Integer.valueOf(ABCD[1]) + Integer.valueOf(ABCD[2]) - Integer.valueOf(ABCD[3]);
    ans[2] = Integer.valueOf(ABCD[0]) + Integer.valueOf(ABCD[1]) - Integer.valueOf(ABCD[2]) + Integer.valueOf(ABCD[3]);
    ans[3] = Integer.valueOf(ABCD[0]) + Integer.valueOf(ABCD[1]) - Integer.valueOf(ABCD[2]) - Integer.valueOf(ABCD[3]);
    ans[4] = Integer.valueOf(ABCD[0]) - Integer.valueOf(ABCD[1]) - Integer.valueOf(ABCD[2]) - Integer.valueOf(ABCD[3]);
    ans[5] = Integer.valueOf(ABCD[0]) - Integer.valueOf(ABCD[1]) - Integer.valueOf(ABCD[2]) + Integer.valueOf(ABCD[3]);
    ans[6] = Integer.valueOf(ABCD[0]) - Integer.valueOf(ABCD[1]) + Integer.valueOf(ABCD[2]) - Integer.valueOf(ABCD[3]);
    ans[7] = Integer.valueOf(ABCD[0]) - Integer.valueOf(ABCD[1]) + Integer.valueOf(ABCD[2]) + Integer.valueOf(ABCD[3]);

    if (ans[0] == 7) { result = ABCD[0] + "+" + ABCD[1] + "+" + ABCD[2] + "+" + ABCD[3] + "=7"; }
    if (ans[1] == 7) { result = ABCD[0] + "+" + ABCD[1] + "+" + ABCD[2] + "-" + ABCD[3] + "=7"; }
    if (ans[2] == 7) { result = ABCD[0] + "+" + ABCD[1] + "-" + ABCD[2] + "+" + ABCD[3] + "=7"; }
    if (ans[3] == 7) { result = ABCD[0] + "+" + ABCD[1] + "-" + ABCD[2] + "-" + ABCD[3] + "=7"; }
    if (ans[4] == 7) { result = ABCD[0] + "-" + ABCD[1] + "-" + ABCD[2] + "-" + ABCD[3] + "=7"; }
    if (ans[5] == 7) { result = ABCD[0] + "-" + ABCD[1] + "-" + ABCD[2] + "+" + ABCD[3] + "=7"; }
    if (ans[6] == 7) { result = ABCD[0] + "-" + ABCD[1] + "+" + ABCD[2] + "-" + ABCD[3] + "=7"; }
    if (ans[7] == 7) { result = ABCD[0] + "-" + ABCD[1] + "+" + ABCD[2] + "+" + ABCD[3] + "=7"; }

    System.out.println(result);

  }

} import java.util.*; util.* java public class Main {

  public static void main (String[] args) {

    Scanner sc = new Scanner(System.in);
    
    String abcd = sc.next();
    sc.close();

    String[] ABCD = abcd.split("");

    String result = "";
    
    int[] ans = new int[8];

    ans[0] = Integer.valueOf(ABCD[0]) + Integer.valueOf(ABCD[1]) + Integer.valueOf(ABCD[2]) + Integer.valueOf(ABCD[3]);
    ans[1] = Integer.valueOf(ABCD[0]) + Integer.valueOf(ABCD[1]) + Integer.valueOf(ABCD[2]) - Integer.valueOf(ABCD[3]);
    ans[2] = Integer.valueOf(ABCD[0]) + Integer.valueOf(ABCD[1]) - Integer.valueOf(ABCD[2]) + Integer.valueOf(ABCD[3]);
    ans[3] = Integer.valueOf(ABCD[0]) + Integer.valueOf(ABCD[1]) - Integer.valueOf(ABCD[2]) - Integer.valueOf(ABCD[3]);
    ans[4] = Integer.valueOf(ABCD[0]) - Integer.valueOf(ABCD[1]) - Integer.valueOf(ABCD[2]) - Integer.valueOf(ABCD[3]);
    ans[5] = Integer.valueOf(ABCD[0]) - Integer.valueOf(ABCD[1]) - Integer.valueOf(ABCD[2]) + Integer.valueOf(ABCD[3]);
    ans[6] = Integer.valueOf(ABCD[0]) - Integer.valueOf(ABCD[1]) + Integer.valueOf(ABCD[2]) - Integer.valueOf(ABCD[3]);
    ans[7] = Integer.valueOf(ABCD[0]) - Integer.valueOf(ABCD[1]) + Integer.valueOf(ABCD[2]) + Integer.valueOf(ABCD[3]);

    if (ans[0] == 7) { result = ABCD[0] + "+" + ABCD[1] + "+" + ABCD[2] + "+" + ABCD[3] + "=7"; }
    if (ans[1] == 7) { result = ABCD[0] + "+" + ABCD[1] + "+" + ABCD[2] + "-" + ABCD[3] + "=7"; }
    if (ans[2] == 7) { result = ABCD[0] + "+" + ABCD[1] + "-" + ABCD[2] + "+" + ABCD[3] + "=7"; }
    if (ans[3] == 7) { result = ABCD[0] + "+" + ABCD[1] + "-" + ABCD[2] + "-" + ABCD[3] + "=7"; }
    if (ans[4] == 7) { result = ABCD[0] + "-" + ABCD[1] + "-" + ABCD[2] + "-" + ABCD[3] + "=7"; }
    if (ans[5] == 7) { result = ABCD[0] + "-" + ABCD[1] + "-" + ABCD[2] + "+" + ABCD[3] + "=7"; }
    if (ans[6] == 7) { result = ABCD[0] + "-" + ABCD[1] + "+" + ABCD[2] + "-" + ABCD[3] + "=7"; }
    if (ans[7] == 7) { result = ABCD[0] + "-" + ABCD[1] + "+" + ABCD[2] + "+" + ABCD[3] + "=7"; }

    System.out.println(result);

  }

} Main public static void main (String[] args) {

    Scanner sc = new Scanner(System.in);
    
    String abcd = sc.next();
    sc.close();

    String[] ABCD = abcd.split("");

    String result = "";
    
    int[] ans = new int[8];

    ans[0] = Integer.valueOf(ABCD[0]) + Integer.valueOf(ABCD[1]) + Integer.valueOf(ABCD[2]) + Integer.valueOf(ABCD[3]);
    ans[1] = Integer.valueOf(ABCD[0]) + Integer.valueOf(ABCD[1]) + Integer.valueOf(ABCD[2]) - Integer.valueOf(ABCD[3]);
    ans[2] = Integer.valueOf(ABCD[0]) + Integer.valueOf(ABCD[1]) - Integer.valueOf(ABCD[2]) + Integer.valueOf(ABCD[3]);
    ans[3] = Integer.valueOf(ABCD[0]) + Integer.valueOf(ABCD[1]) - Integer.valueOf(ABCD[2]) - Integer.valueOf(ABCD[3]);
    ans[4] = Integer.valueOf(ABCD[0]) - Integer.valueOf(ABCD[1]) - Integer.valueOf(ABCD[2]) - Integer.valueOf(ABCD[3]);
    ans[5] = Integer.valueOf(ABCD[0]) - Integer.valueOf(ABCD[1]) - Integer.valueOf(ABCD[2]) + Integer.valueOf(ABCD[3]);
    ans[6] = Integer.valueOf(ABCD[0]) - Integer.valueOf(ABCD[1]) + Integer.valueOf(ABCD[2]) - Integer.valueOf(ABCD[3]);
    ans[7] = Integer.valueOf(ABCD[0]) - Integer.valueOf(ABCD[1]) + Integer.valueOf(ABCD[2]) + Integer.valueOf(ABCD[3]);

    if (ans[0] == 7) { result = ABCD[0] + "+" + ABCD[1] + "+" + ABCD[2] + "+" + ABCD[3] + "=7"; }
    if (ans[1] == 7) { result = ABCD[0] + "+" + ABCD[1] + "+" + ABCD[2] + "-" + ABCD[3] + "=7"; }
    if (ans[2] == 7) { result = ABCD[0] + "+" + ABCD[1] + "-" + ABCD[2] + "+" + ABCD[3] + "=7"; }
    if (ans[3] == 7) { result = ABCD[0] + "+" + ABCD[1] + "-" + ABCD[2] + "-" + ABCD[3] + "=7"; }
    if (ans[4] == 7) { result = ABCD[0] + "-" + ABCD[1] + "-" + ABCD[2] + "-" + ABCD[3] + "=7"; }
    if (ans[5] == 7) { result = ABCD[0] + "-" + ABCD[1] + "-" + ABCD[2] + "+" + ABCD[3] + "=7"; }
    if (ans[6] == 7) { result = ABCD[0] + "-" + ABCD[1] + "+" + ABCD[2] + "-" + ABCD[3] + "=7"; }
    if (ans[7] == 7) { result = ABCD[0] + "-" + ABCD[1] + "+" + ABCD[2] + "+" + ABCD[3] + "=7"; }

    System.out.println(result);

  } main {

    Scanner sc = new Scanner(System.in);
    
    String abcd = sc.next();
    sc.close();

    String[] ABCD = abcd.split("");

    String result = "";
    
    int[] ans = new int[8];

    ans[0] = Integer.valueOf(ABCD[0]) + Integer.valueOf(ABCD[1]) + Integer.valueOf(ABCD[2]) + Integer.valueOf(ABCD[3]);
    ans[1] = Integer.valueOf(ABCD[0]) + Integer.valueOf(ABCD[1]) + Integer.valueOf(ABCD[2]) - Integer.valueOf(ABCD[3]);
    ans[2] = Integer.valueOf(ABCD[0]) + Integer.valueOf(ABCD[1]) - Integer.valueOf(ABCD[2]) + Integer.valueOf(ABCD[3]);
    ans[3] = Integer.valueOf(ABCD[0]) + Integer.valueOf(ABCD[1]) - Integer.valueOf(ABCD[2]) - Integer.valueOf(ABCD[3]);
    ans[4] = Integer.valueOf(ABCD[0]) - Integer.valueOf(ABCD[1]) - Integer.valueOf(ABCD[2]) - Integer.valueOf(ABCD[3]);
    ans[5] = Integer.valueOf(ABCD[0]) - Integer.valueOf(ABCD[1]) - Integer.valueOf(ABCD[2]) + Integer.valueOf(ABCD[3]);
    ans[6] = Integer.valueOf(ABCD[0]) - Integer.valueOf(ABCD[1]) + Integer.valueOf(ABCD[2]) - Integer.valueOf(ABCD[3]);
    ans[7] = Integer.valueOf(ABCD[0]) - Integer.valueOf(ABCD[1]) + Integer.valueOf(ABCD[2]) + Integer.valueOf(ABCD[3]);

    if (ans[0] == 7) { result = ABCD[0] + "+" + ABCD[1] + "+" + ABCD[2] + "+" + ABCD[3] + "=7"; }
    if (ans[1] == 7) { result = ABCD[0] + "+" + ABCD[1] + "+" + ABCD[2] + "-" + ABCD[3] + "=7"; }
    if (ans[2] == 7) { result = ABCD[0] + "+" + ABCD[1] + "-" + ABCD[2] + "+" + ABCD[3] + "=7"; }
    if (ans[3] == 7) { result = ABCD[0] + "+" + ABCD[1] + "-" + ABCD[2] + "-" + ABCD[3] + "=7"; }
    if (ans[4] == 7) { result = ABCD[0] + "-" + ABCD[1] + "-" + ABCD[2] + "-" + ABCD[3] + "=7"; }
    if (ans[5] == 7) { result = ABCD[0] + "-" + ABCD[1] + "-" + ABCD[2] + "+" + ABCD[3] + "=7"; }
    if (ans[6] == 7) { result = ABCD[0] + "-" + ABCD[1] + "+" + ABCD[2] + "-" + ABCD[3] + "=7"; }
    if (ans[7] == 7) { result = ABCD[0] + "-" + ABCD[1] + "+" + ABCD[2] + "+" + ABCD[3] + "=7"; }

    System.out.println(result);

  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String abcd = sc.next(); abcd sc.next() sc.next sc sc.close() sc.close sc String[] ABCD = abcd.split(""); ABCD abcd.split("") abcd.split abcd "" String result = ""; result "" int[] ans = new int[8]; ans new int[8] 8 ans[0] = Integer.valueOf(ABCD[0]) + Integer.valueOf(ABCD[1]) + Integer.valueOf(ABCD[2]) + Integer.valueOf(ABCD[3]) ans[0] ans 0 Integer.valueOf(ABCD[0]) + Integer.valueOf(ABCD[1]) + Integer.valueOf(ABCD[2]) + Integer.valueOf(ABCD[3]) Integer.valueOf(ABCD[2]) Integer.valueOf(ABCD[0]) + Integer.valueOf(ABCD[1]) + Integer.valueOf(ABCD[2]) + Integer.valueOf(ABCD[3]) Integer.valueOf(ABCD[0]) Integer.valueOf Integer ABCD[0] ABCD 0 Integer.valueOf(ABCD[1]) Integer.valueOf Integer ABCD[1] ABCD 1 Integer.valueOf(ABCD[2]) Integer.valueOf Integer ABCD[2] ABCD 2 Integer.valueOf(ABCD[3]) Integer.valueOf Integer ABCD[3] ABCD 3 ans[1] = Integer.valueOf(ABCD[0]) + Integer.valueOf(ABCD[1]) + Integer.valueOf(ABCD[2]) - Integer.valueOf(ABCD[3]) ans[1] ans 1 Integer.valueOf(ABCD[0]) + Integer.valueOf(ABCD[1]) + Integer.valueOf(ABCD[2]) - Integer.valueOf(ABCD[3]) Integer.valueOf(ABCD[0]) + Integer.valueOf(ABCD[1]) + Integer.valueOf(ABCD[2]) Integer.valueOf(ABCD[0]) + Integer.valueOf(ABCD[1]) + Integer.valueOf(ABCD[2]) Integer.valueOf(ABCD[0]) Integer.valueOf Integer ABCD[0] ABCD 0 Integer.valueOf(ABCD[1]) Integer.valueOf Integer ABCD[1] ABCD 1 Integer.valueOf(ABCD[2]) Integer.valueOf Integer ABCD[2] ABCD 2 Integer.valueOf(ABCD[3]) Integer.valueOf Integer ABCD[3] ABCD 3 ans[2] = Integer.valueOf(ABCD[0]) + Integer.valueOf(ABCD[1]) - Integer.valueOf(ABCD[2]) + Integer.valueOf(ABCD[3]) ans[2] ans 2 Integer.valueOf(ABCD[0]) + Integer.valueOf(ABCD[1]) - Integer.valueOf(ABCD[2]) + Integer.valueOf(ABCD[3]) Integer.valueOf(ABCD[0]) + Integer.valueOf(ABCD[1]) - Integer.valueOf(ABCD[2]) Integer.valueOf(ABCD[0]) + Integer.valueOf(ABCD[1]) Integer.valueOf(ABCD[0]) Integer.valueOf Integer ABCD[0] ABCD 0 Integer.valueOf(ABCD[1]) Integer.valueOf Integer ABCD[1] ABCD 1 Integer.valueOf(ABCD[2]) Integer.valueOf Integer ABCD[2] ABCD 2 Integer.valueOf(ABCD[3]) Integer.valueOf Integer ABCD[3] ABCD 3 ans[3] = Integer.valueOf(ABCD[0]) + Integer.valueOf(ABCD[1]) - Integer.valueOf(ABCD[2]) - Integer.valueOf(ABCD[3]) ans[3] ans 3 Integer.valueOf(ABCD[0]) + Integer.valueOf(ABCD[1]) - Integer.valueOf(ABCD[2]) - Integer.valueOf(ABCD[3]) Integer.valueOf(ABCD[0]) + Integer.valueOf(ABCD[1]) - Integer.valueOf(ABCD[2]) - Integer.valueOf(ABCD[3]) Integer.valueOf(ABCD[0]) + Integer.valueOf(ABCD[1]) Integer.valueOf(ABCD[0]) Integer.valueOf Integer ABCD[0] ABCD 0 Integer.valueOf(ABCD[1]) Integer.valueOf Integer ABCD[1] ABCD 1 Integer.valueOf(ABCD[2]) Integer.valueOf Integer ABCD[2] ABCD 2 Integer.valueOf(ABCD[3]) Integer.valueOf Integer ABCD[3] ABCD 3 ans[4] = Integer.valueOf(ABCD[0]) - Integer.valueOf(ABCD[1]) - Integer.valueOf(ABCD[2]) - Integer.valueOf(ABCD[3]) ans[4] ans 4 Integer.valueOf(ABCD[0]) - Integer.valueOf(ABCD[1]) - Integer.valueOf(ABCD[2]) - Integer.valueOf(ABCD[3]) Integer.valueOf(ABCD[2]) Integer.valueOf(ABCD[0]) - Integer.valueOf(ABCD[1]) - Integer.valueOf(ABCD[2]) - Integer.valueOf(ABCD[3]) Integer.valueOf(ABCD[0]) Integer.valueOf Integer ABCD[0] ABCD 0 Integer.valueOf(ABCD[1]) Integer.valueOf Integer ABCD[1] ABCD 1 Integer.valueOf(ABCD[2]) Integer.valueOf Integer ABCD[2] ABCD 2 Integer.valueOf(ABCD[3]) Integer.valueOf Integer ABCD[3] ABCD 3 ans[5] = Integer.valueOf(ABCD[0]) - Integer.valueOf(ABCD[1]) - Integer.valueOf(ABCD[2]) + Integer.valueOf(ABCD[3]) ans[5] ans 5 Integer.valueOf(ABCD[0]) - Integer.valueOf(ABCD[1]) - Integer.valueOf(ABCD[2]) + Integer.valueOf(ABCD[3]) Integer.valueOf(ABCD[0]) - Integer.valueOf(ABCD[1]) - Integer.valueOf(ABCD[2]) Integer.valueOf(ABCD[0]) - Integer.valueOf(ABCD[1]) - Integer.valueOf(ABCD[2]) Integer.valueOf(ABCD[0]) Integer.valueOf Integer ABCD[0] ABCD 0 Integer.valueOf(ABCD[1]) Integer.valueOf Integer ABCD[1] ABCD 1 Integer.valueOf(ABCD[2]) Integer.valueOf Integer ABCD[2] ABCD 2 Integer.valueOf(ABCD[3]) Integer.valueOf Integer ABCD[3] ABCD 3 ans[6] = Integer.valueOf(ABCD[0]) - Integer.valueOf(ABCD[1]) + Integer.valueOf(ABCD[2]) - Integer.valueOf(ABCD[3]) ans[6] ans 6 Integer.valueOf(ABCD[0]) - Integer.valueOf(ABCD[1]) + Integer.valueOf(ABCD[2]) - Integer.valueOf(ABCD[3]) Integer.valueOf(ABCD[0]) - Integer.valueOf(ABCD[1]) + Integer.valueOf(ABCD[2]) Integer.valueOf(ABCD[0]) - Integer.valueOf(ABCD[1]) Integer.valueOf(ABCD[0]) Integer.valueOf Integer ABCD[0] ABCD 0 Integer.valueOf(ABCD[1]) Integer.valueOf Integer ABCD[1] ABCD 1 Integer.valueOf(ABCD[2]) Integer.valueOf Integer ABCD[2] ABCD 2 Integer.valueOf(ABCD[3]) Integer.valueOf Integer ABCD[3] ABCD 3 ans[7] = Integer.valueOf(ABCD[0]) - Integer.valueOf(ABCD[1]) + Integer.valueOf(ABCD[2]) + Integer.valueOf(ABCD[3]) ans[7] ans 7 Integer.valueOf(ABCD[0]) - Integer.valueOf(ABCD[1]) + Integer.valueOf(ABCD[2]) + Integer.valueOf(ABCD[3]) Integer.valueOf(ABCD[0]) - Integer.valueOf(ABCD[1]) + Integer.valueOf(ABCD[2]) + Integer.valueOf(ABCD[3]) Integer.valueOf(ABCD[0]) - Integer.valueOf(ABCD[1]) Integer.valueOf(ABCD[0]) Integer.valueOf Integer ABCD[0] ABCD 0 Integer.valueOf(ABCD[1]) Integer.valueOf Integer ABCD[1] ABCD 1 Integer.valueOf(ABCD[2]) Integer.valueOf Integer ABCD[2] ABCD 2 Integer.valueOf(ABCD[3]) Integer.valueOf Integer ABCD[3] ABCD 3 if (ans[0] == 7) { result = ABCD[0] + "+" + ABCD[1] + "+" + ABCD[2] + "+" + ABCD[3] + "=7"; } ans[0] == 7 ans[0] ans 0 7 { result = ABCD[0] + "+" + ABCD[1] + "+" + ABCD[2] + "+" + ABCD[3] + "=7"; } result = ABCD[0] + "+" + ABCD[1] + "+" + ABCD[2] + "+" + ABCD[3] + "=7" result ABCD[0] + "+" + ABCD[1] + "+" + ABCD[2] + "+" + ABCD[3] + "=7" ABCD[3] "+" ABCD[2] "+" ABCD[1] ABCD[0] + "+" + ABCD[1] + "+" + ABCD[2] + "+" + ABCD[3] + "=7" ABCD[0] ABCD 0 "+" ABCD[1] ABCD 1 "+" ABCD[2] ABCD 2 "+" ABCD[3] ABCD 3 "=7" if (ans[1] == 7) { result = ABCD[0] + "+" + ABCD[1] + "+" + ABCD[2] + "-" + ABCD[3] + "=7"; } ans[1] == 7 ans[1] ans 1 7 { result = ABCD[0] + "+" + ABCD[1] + "+" + ABCD[2] + "-" + ABCD[3] + "=7"; } result = ABCD[0] + "+" + ABCD[1] + "+" + ABCD[2] + "-" + ABCD[3] + "=7" result ABCD[0] + "+" + ABCD[1] + "+" + ABCD[2] + "-" + ABCD[3] + "=7" ABCD[3] "-" ABCD[2] "+" ABCD[1] ABCD[0] + "+" + ABCD[1] + "+" + ABCD[2] + "-" + ABCD[3] + "=7" ABCD[0] ABCD 0 "+" ABCD[1] ABCD 1 "+" ABCD[2] ABCD 2 "-" ABCD[3] ABCD 3 "=7" if (ans[2] == 7) { result = ABCD[0] + "+" + ABCD[1] + "-" + ABCD[2] + "+" + ABCD[3] + "=7"; } ans[2] == 7 ans[2] ans 2 7 { result = ABCD[0] + "+" + ABCD[1] + "-" + ABCD[2] + "+" + ABCD[3] + "=7"; } result = ABCD[0] + "+" + ABCD[1] + "-" + ABCD[2] + "+" + ABCD[3] + "=7" result ABCD[0] + "+" + ABCD[1] + "-" + ABCD[2] + "+" + ABCD[3] + "=7" ABCD[3] "+" ABCD[2] "-" ABCD[1] ABCD[0] + "+" + ABCD[1] + "-" + ABCD[2] + "+" + ABCD[3] + "=7" ABCD[0] ABCD 0 "+" ABCD[1] ABCD 1 "-" ABCD[2] ABCD 2 "+" ABCD[3] ABCD 3 "=7" if (ans[3] == 7) { result = ABCD[0] + "+" + ABCD[1] + "-" + ABCD[2] + "-" + ABCD[3] + "=7"; } ans[3] == 7 ans[3] ans 3 7 { result = ABCD[0] + "+" + ABCD[1] + "-" + ABCD[2] + "-" + ABCD[3] + "=7"; } result = ABCD[0] + "+" + ABCD[1] + "-" + ABCD[2] + "-" + ABCD[3] + "=7" result ABCD[0] + "+" + ABCD[1] + "-" + ABCD[2] + "-" + ABCD[3] + "=7" ABCD[3] "-" ABCD[2] "-" ABCD[1] ABCD[0] + "+" + ABCD[1] + "-" + ABCD[2] + "-" + ABCD[3] + "=7" ABCD[0] ABCD 0 "+" ABCD[1] ABCD 1 "-" ABCD[2] ABCD 2 "-" ABCD[3] ABCD 3 "=7" if (ans[4] == 7) { result = ABCD[0] + "-" + ABCD[1] + "-" + ABCD[2] + "-" + ABCD[3] + "=7"; } ans[4] == 7 ans[4] ans 4 7 { result = ABCD[0] + "-" + ABCD[1] + "-" + ABCD[2] + "-" + ABCD[3] + "=7"; } result = ABCD[0] + "-" + ABCD[1] + "-" + ABCD[2] + "-" + ABCD[3] + "=7" result ABCD[0] + "-" + ABCD[1] + "-" + ABCD[2] + "-" + ABCD[3] + "=7" ABCD[3] "-" ABCD[2] "-" ABCD[1] ABCD[0] + "-" + ABCD[1] + "-" + ABCD[2] + "-" + ABCD[3] + "=7" ABCD[0] ABCD 0 "-" ABCD[1] ABCD 1 "-" ABCD[2] ABCD 2 "-" ABCD[3] ABCD 3 "=7" if (ans[5] == 7) { result = ABCD[0] + "-" + ABCD[1] + "-" + ABCD[2] + "+" + ABCD[3] + "=7"; } ans[5] == 7 ans[5] ans 5 7 { result = ABCD[0] + "-" + ABCD[1] + "-" + ABCD[2] + "+" + ABCD[3] + "=7"; } result = ABCD[0] + "-" + ABCD[1] + "-" + ABCD[2] + "+" + ABCD[3] + "=7" result ABCD[0] + "-" + ABCD[1] + "-" + ABCD[2] + "+" + ABCD[3] + "=7" ABCD[3] "+" ABCD[2] "-" ABCD[1] ABCD[0] + "-" + ABCD[1] + "-" + ABCD[2] + "+" + ABCD[3] + "=7" ABCD[0] ABCD 0 "-" ABCD[1] ABCD 1 "-" ABCD[2] ABCD 2 "+" ABCD[3] ABCD 3 "=7" if (ans[6] == 7) { result = ABCD[0] + "-" + ABCD[1] + "+" + ABCD[2] + "-" + ABCD[3] + "=7"; } ans[6] == 7 ans[6] ans 6 7 { result = ABCD[0] + "-" + ABCD[1] + "+" + ABCD[2] + "-" + ABCD[3] + "=7"; } result = ABCD[0] + "-" + ABCD[1] + "+" + ABCD[2] + "-" + ABCD[3] + "=7" result ABCD[0] + "-" + ABCD[1] + "+" + ABCD[2] + "-" + ABCD[3] + "=7" ABCD[3] "-" ABCD[2] "+" ABCD[1] ABCD[0] + "-" + ABCD[1] + "+" + ABCD[2] + "-" + ABCD[3] + "=7" ABCD[0] ABCD 0 "-" ABCD[1] ABCD 1 "+" ABCD[2] ABCD 2 "-" ABCD[3] ABCD 3 "=7" if (ans[7] == 7) { result = ABCD[0] + "-" + ABCD[1] + "+" + ABCD[2] + "+" + ABCD[3] + "=7"; } ans[7] == 7 ans[7] ans 7 7 { result = ABCD[0] + "-" + ABCD[1] + "+" + ABCD[2] + "+" + ABCD[3] + "=7"; } result = ABCD[0] + "-" + ABCD[1] + "+" + ABCD[2] + "+" + ABCD[3] + "=7" result ABCD[0] + "-" + ABCD[1] + "+" + ABCD[2] + "+" + ABCD[3] + "=7" ABCD[3] "+" ABCD[2] "+" ABCD[1] ABCD[0] + "-" + ABCD[1] + "+" + ABCD[2] + "+" + ABCD[3] + "=7" ABCD[0] ABCD 0 "-" ABCD[1] ABCD 1 "+" ABCD[2] ABCD 2 "+" ABCD[3] ABCD 3 "=7" System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main {

  public static void main (String[] args) {

    Scanner sc = new Scanner(System.in);
    
    String abcd = sc.next();
    sc.close();

    String[] ABCD = abcd.split("");

    String result = "";
    
    int[] ans = new int[8];

    ans[0] = Integer.valueOf(ABCD[0]) + Integer.valueOf(ABCD[1]) + Integer.valueOf(ABCD[2]) + Integer.valueOf(ABCD[3]);
    ans[1] = Integer.valueOf(ABCD[0]) + Integer.valueOf(ABCD[1]) + Integer.valueOf(ABCD[2]) - Integer.valueOf(ABCD[3]);
    ans[2] = Integer.valueOf(ABCD[0]) + Integer.valueOf(ABCD[1]) - Integer.valueOf(ABCD[2]) + Integer.valueOf(ABCD[3]);
    ans[3] = Integer.valueOf(ABCD[0]) + Integer.valueOf(ABCD[1]) - Integer.valueOf(ABCD[2]) - Integer.valueOf(ABCD[3]);
    ans[4] = Integer.valueOf(ABCD[0]) - Integer.valueOf(ABCD[1]) - Integer.valueOf(ABCD[2]) - Integer.valueOf(ABCD[3]);
    ans[5] = Integer.valueOf(ABCD[0]) - Integer.valueOf(ABCD[1]) - Integer.valueOf(ABCD[2]) + Integer.valueOf(ABCD[3]);
    ans[6] = Integer.valueOf(ABCD[0]) - Integer.valueOf(ABCD[1]) + Integer.valueOf(ABCD[2]) - Integer.valueOf(ABCD[3]);
    ans[7] = Integer.valueOf(ABCD[0]) - Integer.valueOf(ABCD[1]) + Integer.valueOf(ABCD[2]) + Integer.valueOf(ABCD[3]);

    if (ans[0] == 7) { result = ABCD[0] + "+" + ABCD[1] + "+" + ABCD[2] + "+" + ABCD[3] + "=7"; }
    if (ans[1] == 7) { result = ABCD[0] + "+" + ABCD[1] + "+" + ABCD[2] + "-" + ABCD[3] + "=7"; }
    if (ans[2] == 7) { result = ABCD[0] + "+" + ABCD[1] + "-" + ABCD[2] + "+" + ABCD[3] + "=7"; }
    if (ans[3] == 7) { result = ABCD[0] + "+" + ABCD[1] + "-" + ABCD[2] + "-" + ABCD[3] + "=7"; }
    if (ans[4] == 7) { result = ABCD[0] + "-" + ABCD[1] + "-" + ABCD[2] + "-" + ABCD[3] + "=7"; }
    if (ans[5] == 7) { result = ABCD[0] + "-" + ABCD[1] + "-" + ABCD[2] + "+" + ABCD[3] + "=7"; }
    if (ans[6] == 7) { result = ABCD[0] + "-" + ABCD[1] + "+" + ABCD[2] + "-" + ABCD[3] + "=7"; }
    if (ans[7] == 7) { result = ABCD[0] + "-" + ABCD[1] + "+" + ABCD[2] + "+" + ABCD[3] + "=7"; }

    System.out.println(result);

  }

} public class Main {

  public static void main (String[] args) {

    Scanner sc = new Scanner(System.in);
    
    String abcd = sc.next();
    sc.close();

    String[] ABCD = abcd.split("");

    String result = "";
    
    int[] ans = new int[8];

    ans[0] = Integer.valueOf(ABCD[0]) + Integer.valueOf(ABCD[1]) + Integer.valueOf(ABCD[2]) + Integer.valueOf(ABCD[3]);
    ans[1] = Integer.valueOf(ABCD[0]) + Integer.valueOf(ABCD[1]) + Integer.valueOf(ABCD[2]) - Integer.valueOf(ABCD[3]);
    ans[2] = Integer.valueOf(ABCD[0]) + Integer.valueOf(ABCD[1]) - Integer.valueOf(ABCD[2]) + Integer.valueOf(ABCD[3]);
    ans[3] = Integer.valueOf(ABCD[0]) + Integer.valueOf(ABCD[1]) - Integer.valueOf(ABCD[2]) - Integer.valueOf(ABCD[3]);
    ans[4] = Integer.valueOf(ABCD[0]) - Integer.valueOf(ABCD[1]) - Integer.valueOf(ABCD[2]) - Integer.valueOf(ABCD[3]);
    ans[5] = Integer.valueOf(ABCD[0]) - Integer.valueOf(ABCD[1]) - Integer.valueOf(ABCD[2]) + Integer.valueOf(ABCD[3]);
    ans[6] = Integer.valueOf(ABCD[0]) - Integer.valueOf(ABCD[1]) + Integer.valueOf(ABCD[2]) - Integer.valueOf(ABCD[3]);
    ans[7] = Integer.valueOf(ABCD[0]) - Integer.valueOf(ABCD[1]) + Integer.valueOf(ABCD[2]) + Integer.valueOf(ABCD[3]);

    if (ans[0] == 7) { result = ABCD[0] + "+" + ABCD[1] + "+" + ABCD[2] + "+" + ABCD[3] + "=7"; }
    if (ans[1] == 7) { result = ABCD[0] + "+" + ABCD[1] + "+" + ABCD[2] + "-" + ABCD[3] + "=7"; }
    if (ans[2] == 7) { result = ABCD[0] + "+" + ABCD[1] + "-" + ABCD[2] + "+" + ABCD[3] + "=7"; }
    if (ans[3] == 7) { result = ABCD[0] + "+" + ABCD[1] + "-" + ABCD[2] + "-" + ABCD[3] + "=7"; }
    if (ans[4] == 7) { result = ABCD[0] + "-" + ABCD[1] + "-" + ABCD[2] + "-" + ABCD[3] + "=7"; }
    if (ans[5] == 7) { result = ABCD[0] + "-" + ABCD[1] + "-" + ABCD[2] + "+" + ABCD[3] + "=7"; }
    if (ans[6] == 7) { result = ABCD[0] + "-" + ABCD[1] + "+" + ABCD[2] + "-" + ABCD[3] + "=7"; }
    if (ans[7] == 7) { result = ABCD[0] + "-" + ABCD[1] + "+" + ABCD[2] + "+" + ABCD[3] + "=7"; }

    System.out.println(result);

  }

} Main
import java.util.*;

public class Main {

  public static void main (String[] args) {

    Scanner sc = new Scanner(System.in);
    
    String abcd = sc.next();
    sc.close();

    String[] ABCD = abcd.split("");

    String result = "";
    
    int[] ans = new int[8];

    ans[0] = Integer.valueOf(ABCD[0]) + Integer.valueOf(ABCD[1]) + Integer.valueOf(ABCD[2]) + Integer.valueOf(ABCD[3]);
    ans[1] = Integer.valueOf(ABCD[0]) + Integer.valueOf(ABCD[1]) + Integer.valueOf(ABCD[2]) - Integer.valueOf(ABCD[3]);
    ans[2] = Integer.valueOf(ABCD[0]) + Integer.valueOf(ABCD[1]) - Integer.valueOf(ABCD[2]) + Integer.valueOf(ABCD[3]);
    ans[3] = Integer.valueOf(ABCD[0]) + Integer.valueOf(ABCD[1]) - Integer.valueOf(ABCD[2]) - Integer.valueOf(ABCD[3]);
    ans[4] = Integer.valueOf(ABCD[0]) - Integer.valueOf(ABCD[1]) - Integer.valueOf(ABCD[2]) - Integer.valueOf(ABCD[3]);
    ans[5] = Integer.valueOf(ABCD[0]) - Integer.valueOf(ABCD[1]) - Integer.valueOf(ABCD[2]) + Integer.valueOf(ABCD[3]);
    ans[6] = Integer.valueOf(ABCD[0]) - Integer.valueOf(ABCD[1]) + Integer.valueOf(ABCD[2]) - Integer.valueOf(ABCD[3]);
    ans[7] = Integer.valueOf(ABCD[0]) - Integer.valueOf(ABCD[1]) + Integer.valueOf(ABCD[2]) + Integer.valueOf(ABCD[3]);

    if (ans[0] == 7) { result = ABCD[0] + "+" + ABCD[1] + "+" + ABCD[2] + "+" + ABCD[3] + "=7"; }
    if (ans[1] == 7) { result = ABCD[0] + "+" + ABCD[1] + "+" + ABCD[2] + "-" + ABCD[3] + "=7"; }
    if (ans[2] == 7) { result = ABCD[0] + "+" + ABCD[1] + "-" + ABCD[2] + "+" + ABCD[3] + "=7"; }
    if (ans[3] == 7) { result = ABCD[0] + "+" + ABCD[1] + "-" + ABCD[2] + "-" + ABCD[3] + "=7"; }
    if (ans[4] == 7) { result = ABCD[0] + "-" + ABCD[1] + "-" + ABCD[2] + "-" + ABCD[3] + "=7"; }
    if (ans[5] == 7) { result = ABCD[0] + "-" + ABCD[1] + "-" + ABCD[2] + "+" + ABCD[3] + "=7"; }
    if (ans[6] == 7) { result = ABCD[0] + "-" + ABCD[1] + "+" + ABCD[2] + "-" + ABCD[3] + "=7"; }
    if (ans[7] == 7) { result = ABCD[0] + "-" + ABCD[1] + "+" + ABCD[2] + "+" + ABCD[3] + "=7"; }

    System.out.println(result);

  }

}