import java.util.Scanner;

public class Main { 
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    int a = S.charAt(0) - '0';
    int b = S.charAt(1) - '0';
    int c = S.charAt(2) - '0';
    int d = S.charAt(3) - '0';
    if (a -b -c - d ==7) System.out.printf ("%d-%d-%d-%d=7" ,a ,b ,c , d );
    else if (a -b - c + d ==7) System.out.printf ("%d-%d-%d+%d=7" ,a ,b ,c , d );
    else if (a - b +c - d ==7) System.out.printf ("%d-%d+%d-%d=7" ,a ,b ,c , d );
    else if (a - b + c + d ==7) System.out.printf ("%d-%d+%d+%d=7" ,a ,b ,c , d );
    else if ( a +b -c - d ==7) System.out.printf ("%d+%d-%d-%d=7" ,a ,b ,c , d );
    else if ( a +b - c + d ==7) System.out.printf ("%d+%d-%d+%d=7" ,a ,b ,c , d );
    else if ( a + b +c - d ==7) System.out.printf ("%d+%d+%d-%d=7" ,a ,b ,c , d );
    else if ( a + b + c + d ==7) System.out.printf ("%d+%d+%d+%d=7" ,a ,b ,c , d );
  }
} import java.util.Scanner; Scanner java.util public class Main { 
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    int a = S.charAt(0) - '0';
    int b = S.charAt(1) - '0';
    int c = S.charAt(2) - '0';
    int d = S.charAt(3) - '0';
    if (a -b -c - d ==7) System.out.printf ("%d-%d-%d-%d=7" ,a ,b ,c , d );
    else if (a -b - c + d ==7) System.out.printf ("%d-%d-%d+%d=7" ,a ,b ,c , d );
    else if (a - b +c - d ==7) System.out.printf ("%d-%d+%d-%d=7" ,a ,b ,c , d );
    else if (a - b + c + d ==7) System.out.printf ("%d-%d+%d+%d=7" ,a ,b ,c , d );
    else if ( a +b -c - d ==7) System.out.printf ("%d+%d-%d-%d=7" ,a ,b ,c , d );
    else if ( a +b - c + d ==7) System.out.printf ("%d+%d-%d+%d=7" ,a ,b ,c , d );
    else if ( a + b +c - d ==7) System.out.printf ("%d+%d+%d-%d=7" ,a ,b ,c , d );
    else if ( a + b + c + d ==7) System.out.printf ("%d+%d+%d+%d=7" ,a ,b ,c , d );
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    int a = S.charAt(0) - '0';
    int b = S.charAt(1) - '0';
    int c = S.charAt(2) - '0';
    int d = S.charAt(3) - '0';
    if (a -b -c - d ==7) System.out.printf ("%d-%d-%d-%d=7" ,a ,b ,c , d );
    else if (a -b - c + d ==7) System.out.printf ("%d-%d-%d+%d=7" ,a ,b ,c , d );
    else if (a - b +c - d ==7) System.out.printf ("%d-%d+%d-%d=7" ,a ,b ,c , d );
    else if (a - b + c + d ==7) System.out.printf ("%d-%d+%d+%d=7" ,a ,b ,c , d );
    else if ( a +b -c - d ==7) System.out.printf ("%d+%d-%d-%d=7" ,a ,b ,c , d );
    else if ( a +b - c + d ==7) System.out.printf ("%d+%d-%d+%d=7" ,a ,b ,c , d );
    else if ( a + b +c - d ==7) System.out.printf ("%d+%d+%d-%d=7" ,a ,b ,c , d );
    else if ( a + b + c + d ==7) System.out.printf ("%d+%d+%d+%d=7" ,a ,b ,c , d );
  } main {
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    int a = S.charAt(0) - '0';
    int b = S.charAt(1) - '0';
    int c = S.charAt(2) - '0';
    int d = S.charAt(3) - '0';
    if (a -b -c - d ==7) System.out.printf ("%d-%d-%d-%d=7" ,a ,b ,c , d );
    else if (a -b - c + d ==7) System.out.printf ("%d-%d-%d+%d=7" ,a ,b ,c , d );
    else if (a - b +c - d ==7) System.out.printf ("%d-%d+%d-%d=7" ,a ,b ,c , d );
    else if (a - b + c + d ==7) System.out.printf ("%d-%d+%d+%d=7" ,a ,b ,c , d );
    else if ( a +b -c - d ==7) System.out.printf ("%d+%d-%d-%d=7" ,a ,b ,c , d );
    else if ( a +b - c + d ==7) System.out.printf ("%d+%d-%d+%d=7" ,a ,b ,c , d );
    else if ( a + b +c - d ==7) System.out.printf ("%d+%d+%d-%d=7" ,a ,b ,c , d );
    else if ( a + b + c + d ==7) System.out.printf ("%d+%d+%d+%d=7" ,a ,b ,c , d );
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.next(); S sc.next() sc.next sc int a = S.charAt(0) - '0'; a S.charAt(0) - '0' S.charAt(0) S.charAt S 0 '0' int b = S.charAt(1) - '0'; b S.charAt(1) - '0' S.charAt(1) S.charAt S 1 '0' int c = S.charAt(2) - '0'; c S.charAt(2) - '0' S.charAt(2) S.charAt S 2 '0' int d = S.charAt(3) - '0'; d S.charAt(3) - '0' S.charAt(3) S.charAt S 3 '0' if (a -b -c - d ==7) System.out.printf ("%d-%d-%d-%d=7" ,a ,b ,c , d );
    else if (a -b - c + d ==7) System.out.printf ("%d-%d-%d+%d=7" ,a ,b ,c , d );
    else if (a - b +c - d ==7) System.out.printf ("%d-%d+%d-%d=7" ,a ,b ,c , d );
    else if (a - b + c + d ==7) System.out.printf ("%d-%d+%d+%d=7" ,a ,b ,c , d );
    else if ( a +b -c - d ==7) System.out.printf ("%d+%d-%d-%d=7" ,a ,b ,c , d );
    else if ( a +b - c + d ==7) System.out.printf ("%d+%d-%d+%d=7" ,a ,b ,c , d );
    else if ( a + b +c - d ==7) System.out.printf ("%d+%d+%d-%d=7" ,a ,b ,c , d );
    else if ( a + b + c + d ==7) System.out.printf ("%d+%d+%d+%d=7" ,a ,b ,c , d ); a -b -c - d ==7 a -b -c - d c a -b -c - d a b c d 7 System.out.printf ("%d-%d-%d-%d=7" ,a ,b ,c , d ) System.out.printf System.out System System.out "%d-%d-%d-%d=7" a b c d if (a -b - c + d ==7) System.out.printf ("%d-%d-%d+%d=7" ,a ,b ,c , d );
    else if (a - b +c - d ==7) System.out.printf ("%d-%d+%d-%d=7" ,a ,b ,c , d );
    else if (a - b + c + d ==7) System.out.printf ("%d-%d+%d+%d=7" ,a ,b ,c , d );
    else if ( a +b -c - d ==7) System.out.printf ("%d+%d-%d-%d=7" ,a ,b ,c , d );
    else if ( a +b - c + d ==7) System.out.printf ("%d+%d-%d+%d=7" ,a ,b ,c , d );
    else if ( a + b +c - d ==7) System.out.printf ("%d+%d+%d-%d=7" ,a ,b ,c , d );
    else if ( a + b + c + d ==7) System.out.printf ("%d+%d+%d+%d=7" ,a ,b ,c , d ); a -b - c + d ==7 a -b - c + d a -b - c a -b - c a b c d 7 System.out.printf ("%d-%d-%d+%d=7" ,a ,b ,c , d ) System.out.printf System.out System System.out "%d-%d-%d+%d=7" a b c d if (a - b +c - d ==7) System.out.printf ("%d-%d+%d-%d=7" ,a ,b ,c , d );
    else if (a - b + c + d ==7) System.out.printf ("%d-%d+%d+%d=7" ,a ,b ,c , d );
    else if ( a +b -c - d ==7) System.out.printf ("%d+%d-%d-%d=7" ,a ,b ,c , d );
    else if ( a +b - c + d ==7) System.out.printf ("%d+%d-%d+%d=7" ,a ,b ,c , d );
    else if ( a + b +c - d ==7) System.out.printf ("%d+%d+%d-%d=7" ,a ,b ,c , d );
    else if ( a + b + c + d ==7) System.out.printf ("%d+%d+%d+%d=7" ,a ,b ,c , d ); a - b +c - d ==7 a - b +c - d a - b +c a - b a b c d 7 System.out.printf ("%d-%d+%d-%d=7" ,a ,b ,c , d ) System.out.printf System.out System System.out "%d-%d+%d-%d=7" a b c d if (a - b + c + d ==7) System.out.printf ("%d-%d+%d+%d=7" ,a ,b ,c , d );
    else if ( a +b -c - d ==7) System.out.printf ("%d+%d-%d-%d=7" ,a ,b ,c , d );
    else if ( a +b - c + d ==7) System.out.printf ("%d+%d-%d+%d=7" ,a ,b ,c , d );
    else if ( a + b +c - d ==7) System.out.printf ("%d+%d+%d-%d=7" ,a ,b ,c , d );
    else if ( a + b + c + d ==7) System.out.printf ("%d+%d+%d+%d=7" ,a ,b ,c , d ); a - b + c + d ==7 a - b + c + d a - b + c + d a - b a b c d 7 System.out.printf ("%d-%d+%d+%d=7" ,a ,b ,c , d ) System.out.printf System.out System System.out "%d-%d+%d+%d=7" a b c d if ( a +b -c - d ==7) System.out.printf ("%d+%d-%d-%d=7" ,a ,b ,c , d );
    else if ( a +b - c + d ==7) System.out.printf ("%d+%d-%d+%d=7" ,a ,b ,c , d );
    else if ( a + b +c - d ==7) System.out.printf ("%d+%d+%d-%d=7" ,a ,b ,c , d );
    else if ( a + b + c + d ==7) System.out.printf ("%d+%d+%d+%d=7" ,a ,b ,c , d ); a +b -c - d ==7 a +b -c - d a +b -c - d a +b a b c d 7 System.out.printf ("%d+%d-%d-%d=7" ,a ,b ,c , d ) System.out.printf System.out System System.out "%d+%d-%d-%d=7" a b c d if ( a +b - c + d ==7) System.out.printf ("%d+%d-%d+%d=7" ,a ,b ,c , d );
    else if ( a + b +c - d ==7) System.out.printf ("%d+%d+%d-%d=7" ,a ,b ,c , d );
    else if ( a + b + c + d ==7) System.out.printf ("%d+%d+%d+%d=7" ,a ,b ,c , d ); a +b - c + d ==7 a +b - c + d a +b - c a +b a b c d 7 System.out.printf ("%d+%d-%d+%d=7" ,a ,b ,c , d ) System.out.printf System.out System System.out "%d+%d-%d+%d=7" a b c d if ( a + b +c - d ==7) System.out.printf ("%d+%d+%d-%d=7" ,a ,b ,c , d );
    else if ( a + b + c + d ==7) System.out.printf ("%d+%d+%d+%d=7" ,a ,b ,c , d ); a + b +c - d ==7 a + b +c - d a + b +c a + b +c a b c d 7 System.out.printf ("%d+%d+%d-%d=7" ,a ,b ,c , d ) System.out.printf System.out System System.out "%d+%d+%d-%d=7" a b c d if ( a + b + c + d ==7) System.out.printf ("%d+%d+%d+%d=7" ,a ,b ,c , d ); a + b + c + d ==7 a + b + c + d c a + b + c + d a b c d 7 System.out.printf ("%d+%d+%d+%d=7" ,a ,b ,c , d ) System.out.printf System.out System System.out "%d+%d+%d+%d=7" a b c d String[] args args public class Main { 
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    int a = S.charAt(0) - '0';
    int b = S.charAt(1) - '0';
    int c = S.charAt(2) - '0';
    int d = S.charAt(3) - '0';
    if (a -b -c - d ==7) System.out.printf ("%d-%d-%d-%d=7" ,a ,b ,c , d );
    else if (a -b - c + d ==7) System.out.printf ("%d-%d-%d+%d=7" ,a ,b ,c , d );
    else if (a - b +c - d ==7) System.out.printf ("%d-%d+%d-%d=7" ,a ,b ,c , d );
    else if (a - b + c + d ==7) System.out.printf ("%d-%d+%d+%d=7" ,a ,b ,c , d );
    else if ( a +b -c - d ==7) System.out.printf ("%d+%d-%d-%d=7" ,a ,b ,c , d );
    else if ( a +b - c + d ==7) System.out.printf ("%d+%d-%d+%d=7" ,a ,b ,c , d );
    else if ( a + b +c - d ==7) System.out.printf ("%d+%d+%d-%d=7" ,a ,b ,c , d );
    else if ( a + b + c + d ==7) System.out.printf ("%d+%d+%d+%d=7" ,a ,b ,c , d );
  }
} public class Main { 
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    int a = S.charAt(0) - '0';
    int b = S.charAt(1) - '0';
    int c = S.charAt(2) - '0';
    int d = S.charAt(3) - '0';
    if (a -b -c - d ==7) System.out.printf ("%d-%d-%d-%d=7" ,a ,b ,c , d );
    else if (a -b - c + d ==7) System.out.printf ("%d-%d-%d+%d=7" ,a ,b ,c , d );
    else if (a - b +c - d ==7) System.out.printf ("%d-%d+%d-%d=7" ,a ,b ,c , d );
    else if (a - b + c + d ==7) System.out.printf ("%d-%d+%d+%d=7" ,a ,b ,c , d );
    else if ( a +b -c - d ==7) System.out.printf ("%d+%d-%d-%d=7" ,a ,b ,c , d );
    else if ( a +b - c + d ==7) System.out.printf ("%d+%d-%d+%d=7" ,a ,b ,c , d );
    else if ( a + b +c - d ==7) System.out.printf ("%d+%d+%d-%d=7" ,a ,b ,c , d );
    else if ( a + b + c + d ==7) System.out.printf ("%d+%d+%d+%d=7" ,a ,b ,c , d );
  }
} Main
import java.util.Scanner;

public class Main { 
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    int a = S.charAt(0) - '0';
    int b = S.charAt(1) - '0';
    int c = S.charAt(2) - '0';
    int d = S.charAt(3) - '0';
    if (a -b -c - d ==7) System.out.printf ("%d-%d-%d-%d=7" ,a ,b ,c , d );
    else if (a -b - c + d ==7) System.out.printf ("%d-%d-%d+%d=7" ,a ,b ,c , d );
    else if (a - b +c - d ==7) System.out.printf ("%d-%d+%d-%d=7" ,a ,b ,c , d );
    else if (a - b + c + d ==7) System.out.printf ("%d-%d+%d+%d=7" ,a ,b ,c , d );
    else if ( a +b -c - d ==7) System.out.printf ("%d+%d-%d-%d=7" ,a ,b ,c , d );
    else if ( a +b - c + d ==7) System.out.printf ("%d+%d-%d+%d=7" ,a ,b ,c , d );
    else if ( a + b +c - d ==7) System.out.printf ("%d+%d+%d-%d=7" ,a ,b ,c , d );
    else if ( a + b + c + d ==7) System.out.printf ("%d+%d+%d+%d=7" ,a ,b ,c , d );
  }
}