import java.util.*;
public class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      String s = sc.next();
      int a = Integer.parseInt(s.substring(0,1));
      int b = Integer.parseInt(s.substring(1,2));
      int c = Integer.parseInt(s.substring(2,3));
      int d = Integer.parseInt(s.substring(3,4));
      int x1 = a+b+c+d;
      int x2 = a-b+c+d;
      int x3 = a+b-c+d;
      int x4 = a+b+c-d;
      int x5 = a-b-c+d;
      int x6 = a-b+c-d;
      int x7 = a+b-c-d;
      int x8 = a-b-c-d;
      String aa = String.valueOf(a);
      String bb = String.valueOf(b);
      String cc  =String.valueOf(c);
      String dd = String.valueOf(d);
      if(x1==7) System.out.println(aa+"+"+bb+"+"+cc+"+"+dd+"=7");
      else if (x2==7) System.out.println(aa+"-"+bb+"+"+cc+"+"+dd+"=7");
      else if (x3==7) System.out.println(aa+"+"+bb+"-"+cc+"+"+dd+"=7");
      else if (x4==7) System.out.println(aa+"+"+bb+"+"+cc+"-"+dd+"=7");
      else if (x5==7) System.out.println(aa+"-"+bb+"-"+cc+"+"+dd+"=7");
      else if (x6==7) System.out.println(aa+"-"+bb+"+"+cc+"-"+dd+"=7");
      else if (x7==7) System.out.println(aa+"+"+bb+"-"+cc+"-"+dd+"=7");
      else if (x8==7) System.out.println(aa+"-"+bb+"-"+cc+"-"+dd+"=7");
    }
} import java.util.*; util.* java public class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      String s = sc.next();
      int a = Integer.parseInt(s.substring(0,1));
      int b = Integer.parseInt(s.substring(1,2));
      int c = Integer.parseInt(s.substring(2,3));
      int d = Integer.parseInt(s.substring(3,4));
      int x1 = a+b+c+d;
      int x2 = a-b+c+d;
      int x3 = a+b-c+d;
      int x4 = a+b+c-d;
      int x5 = a-b-c+d;
      int x6 = a-b+c-d;
      int x7 = a+b-c-d;
      int x8 = a-b-c-d;
      String aa = String.valueOf(a);
      String bb = String.valueOf(b);
      String cc  =String.valueOf(c);
      String dd = String.valueOf(d);
      if(x1==7) System.out.println(aa+"+"+bb+"+"+cc+"+"+dd+"=7");
      else if (x2==7) System.out.println(aa+"-"+bb+"+"+cc+"+"+dd+"=7");
      else if (x3==7) System.out.println(aa+"+"+bb+"-"+cc+"+"+dd+"=7");
      else if (x4==7) System.out.println(aa+"+"+bb+"+"+cc+"-"+dd+"=7");
      else if (x5==7) System.out.println(aa+"-"+bb+"-"+cc+"+"+dd+"=7");
      else if (x6==7) System.out.println(aa+"-"+bb+"+"+cc+"-"+dd+"=7");
      else if (x7==7) System.out.println(aa+"+"+bb+"-"+cc+"-"+dd+"=7");
      else if (x8==7) System.out.println(aa+"-"+bb+"-"+cc+"-"+dd+"=7");
    }
} Main public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      String s = sc.next();
      int a = Integer.parseInt(s.substring(0,1));
      int b = Integer.parseInt(s.substring(1,2));
      int c = Integer.parseInt(s.substring(2,3));
      int d = Integer.parseInt(s.substring(3,4));
      int x1 = a+b+c+d;
      int x2 = a-b+c+d;
      int x3 = a+b-c+d;
      int x4 = a+b+c-d;
      int x5 = a-b-c+d;
      int x6 = a-b+c-d;
      int x7 = a+b-c-d;
      int x8 = a-b-c-d;
      String aa = String.valueOf(a);
      String bb = String.valueOf(b);
      String cc  =String.valueOf(c);
      String dd = String.valueOf(d);
      if(x1==7) System.out.println(aa+"+"+bb+"+"+cc+"+"+dd+"=7");
      else if (x2==7) System.out.println(aa+"-"+bb+"+"+cc+"+"+dd+"=7");
      else if (x3==7) System.out.println(aa+"+"+bb+"-"+cc+"+"+dd+"=7");
      else if (x4==7) System.out.println(aa+"+"+bb+"+"+cc+"-"+dd+"=7");
      else if (x5==7) System.out.println(aa+"-"+bb+"-"+cc+"+"+dd+"=7");
      else if (x6==7) System.out.println(aa+"-"+bb+"+"+cc+"-"+dd+"=7");
      else if (x7==7) System.out.println(aa+"+"+bb+"-"+cc+"-"+dd+"=7");
      else if (x8==7) System.out.println(aa+"-"+bb+"-"+cc+"-"+dd+"=7");
    } main {
    	Scanner sc = new Scanner(System.in);
      String s = sc.next();
      int a = Integer.parseInt(s.substring(0,1));
      int b = Integer.parseInt(s.substring(1,2));
      int c = Integer.parseInt(s.substring(2,3));
      int d = Integer.parseInt(s.substring(3,4));
      int x1 = a+b+c+d;
      int x2 = a-b+c+d;
      int x3 = a+b-c+d;
      int x4 = a+b+c-d;
      int x5 = a-b-c+d;
      int x6 = a-b+c-d;
      int x7 = a+b-c-d;
      int x8 = a-b-c-d;
      String aa = String.valueOf(a);
      String bb = String.valueOf(b);
      String cc  =String.valueOf(c);
      String dd = String.valueOf(d);
      if(x1==7) System.out.println(aa+"+"+bb+"+"+cc+"+"+dd+"=7");
      else if (x2==7) System.out.println(aa+"-"+bb+"+"+cc+"+"+dd+"=7");
      else if (x3==7) System.out.println(aa+"+"+bb+"-"+cc+"+"+dd+"=7");
      else if (x4==7) System.out.println(aa+"+"+bb+"+"+cc+"-"+dd+"=7");
      else if (x5==7) System.out.println(aa+"-"+bb+"-"+cc+"+"+dd+"=7");
      else if (x6==7) System.out.println(aa+"-"+bb+"+"+cc+"-"+dd+"=7");
      else if (x7==7) System.out.println(aa+"+"+bb+"-"+cc+"-"+dd+"=7");
      else if (x8==7) System.out.println(aa+"-"+bb+"-"+cc+"-"+dd+"=7");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc int a = Integer.parseInt(s.substring(0,1)); a Integer.parseInt(s.substring(0,1)) Integer.parseInt Integer s.substring(0,1) s.substring s 0 1 int b = Integer.parseInt(s.substring(1,2)); b Integer.parseInt(s.substring(1,2)) Integer.parseInt Integer s.substring(1,2) s.substring s 1 2 int c = Integer.parseInt(s.substring(2,3)); c Integer.parseInt(s.substring(2,3)) Integer.parseInt Integer s.substring(2,3) s.substring s 2 3 int d = Integer.parseInt(s.substring(3,4)); d Integer.parseInt(s.substring(3,4)) Integer.parseInt Integer s.substring(3,4) s.substring s 3 4 int x1 = a+b+c+d; x1 a+b+c+d c a+b+c+d a b c d int x2 = a-b+c+d; x2 a-b+c+d a-b+c+d a-b a b c d int x3 = a+b-c+d; x3 a+b-c+d a+b-c a+b a b c d int x4 = a+b+c-d; x4 a+b+c-d a+b+c a+b+c a b c d int x5 = a-b-c+d; x5 a-b-c+d a-b-c a-b-c a b c d int x6 = a-b+c-d; x6 a-b+c-d a-b+c a-b a b c d int x7 = a+b-c-d; x7 a+b-c-d a+b-c-d a+b a b c d int x8 = a-b-c-d; x8 a-b-c-d c a-b-c-d a b c d String aa = String.valueOf(a); aa String.valueOf(a) String.valueOf String a String bb = String.valueOf(b); bb String.valueOf(b) String.valueOf String b String cc  =String.valueOf(c); cc String.valueOf(c) String.valueOf String c String dd = String.valueOf(d); dd String.valueOf(d) String.valueOf String d if(x1==7) System.out.println(aa+"+"+bb+"+"+cc+"+"+dd+"=7");
      else if (x2==7) System.out.println(aa+"-"+bb+"+"+cc+"+"+dd+"=7");
      else if (x3==7) System.out.println(aa+"+"+bb+"-"+cc+"+"+dd+"=7");
      else if (x4==7) System.out.println(aa+"+"+bb+"+"+cc+"-"+dd+"=7");
      else if (x5==7) System.out.println(aa+"-"+bb+"-"+cc+"+"+dd+"=7");
      else if (x6==7) System.out.println(aa+"-"+bb+"+"+cc+"-"+dd+"=7");
      else if (x7==7) System.out.println(aa+"+"+bb+"-"+cc+"-"+dd+"=7");
      else if (x8==7) System.out.println(aa+"-"+bb+"-"+cc+"-"+dd+"=7"); x1==7 x1 7 System.out.println(aa+"+"+bb+"+"+cc+"+"+dd+"=7") System.out.println System.out System System.out aa+"+"+bb+"+"+cc+"+"+dd+"=7" dd "+" cc "+" bb aa+"+"+bb+"+"+cc+"+"+dd+"=7" aa "+" bb "+" cc "+" dd "=7" if (x2==7) System.out.println(aa+"-"+bb+"+"+cc+"+"+dd+"=7");
      else if (x3==7) System.out.println(aa+"+"+bb+"-"+cc+"+"+dd+"=7");
      else if (x4==7) System.out.println(aa+"+"+bb+"+"+cc+"-"+dd+"=7");
      else if (x5==7) System.out.println(aa+"-"+bb+"-"+cc+"+"+dd+"=7");
      else if (x6==7) System.out.println(aa+"-"+bb+"+"+cc+"-"+dd+"=7");
      else if (x7==7) System.out.println(aa+"+"+bb+"-"+cc+"-"+dd+"=7");
      else if (x8==7) System.out.println(aa+"-"+bb+"-"+cc+"-"+dd+"=7"); x2==7 x2 7 System.out.println(aa+"-"+bb+"+"+cc+"+"+dd+"=7") System.out.println System.out System System.out aa+"-"+bb+"+"+cc+"+"+dd+"=7" dd "+" cc "+" bb aa+"-"+bb+"+"+cc+"+"+dd+"=7" aa "-" bb "+" cc "+" dd "=7" if (x3==7) System.out.println(aa+"+"+bb+"-"+cc+"+"+dd+"=7");
      else if (x4==7) System.out.println(aa+"+"+bb+"+"+cc+"-"+dd+"=7");
      else if (x5==7) System.out.println(aa+"-"+bb+"-"+cc+"+"+dd+"=7");
      else if (x6==7) System.out.println(aa+"-"+bb+"+"+cc+"-"+dd+"=7");
      else if (x7==7) System.out.println(aa+"+"+bb+"-"+cc+"-"+dd+"=7");
      else if (x8==7) System.out.println(aa+"-"+bb+"-"+cc+"-"+dd+"=7"); x3==7 x3 7 System.out.println(aa+"+"+bb+"-"+cc+"+"+dd+"=7") System.out.println System.out System System.out aa+"+"+bb+"-"+cc+"+"+dd+"=7" dd "+" cc "-" bb aa+"+"+bb+"-"+cc+"+"+dd+"=7" aa "+" bb "-" cc "+" dd "=7" if (x4==7) System.out.println(aa+"+"+bb+"+"+cc+"-"+dd+"=7");
      else if (x5==7) System.out.println(aa+"-"+bb+"-"+cc+"+"+dd+"=7");
      else if (x6==7) System.out.println(aa+"-"+bb+"+"+cc+"-"+dd+"=7");
      else if (x7==7) System.out.println(aa+"+"+bb+"-"+cc+"-"+dd+"=7");
      else if (x8==7) System.out.println(aa+"-"+bb+"-"+cc+"-"+dd+"=7"); x4==7 x4 7 System.out.println(aa+"+"+bb+"+"+cc+"-"+dd+"=7") System.out.println System.out System System.out aa+"+"+bb+"+"+cc+"-"+dd+"=7" dd "-" cc "+" bb aa+"+"+bb+"+"+cc+"-"+dd+"=7" aa "+" bb "+" cc "-" dd "=7" if (x5==7) System.out.println(aa+"-"+bb+"-"+cc+"+"+dd+"=7");
      else if (x6==7) System.out.println(aa+"-"+bb+"+"+cc+"-"+dd+"=7");
      else if (x7==7) System.out.println(aa+"+"+bb+"-"+cc+"-"+dd+"=7");
      else if (x8==7) System.out.println(aa+"-"+bb+"-"+cc+"-"+dd+"=7"); x5==7 x5 7 System.out.println(aa+"-"+bb+"-"+cc+"+"+dd+"=7") System.out.println System.out System System.out aa+"-"+bb+"-"+cc+"+"+dd+"=7" dd "+" cc "-" bb aa+"-"+bb+"-"+cc+"+"+dd+"=7" aa "-" bb "-" cc "+" dd "=7" if (x6==7) System.out.println(aa+"-"+bb+"+"+cc+"-"+dd+"=7");
      else if (x7==7) System.out.println(aa+"+"+bb+"-"+cc+"-"+dd+"=7");
      else if (x8==7) System.out.println(aa+"-"+bb+"-"+cc+"-"+dd+"=7"); x6==7 x6 7 System.out.println(aa+"-"+bb+"+"+cc+"-"+dd+"=7") System.out.println System.out System System.out aa+"-"+bb+"+"+cc+"-"+dd+"=7" dd "-" cc "+" bb aa+"-"+bb+"+"+cc+"-"+dd+"=7" aa "-" bb "+" cc "-" dd "=7" if (x7==7) System.out.println(aa+"+"+bb+"-"+cc+"-"+dd+"=7");
      else if (x8==7) System.out.println(aa+"-"+bb+"-"+cc+"-"+dd+"=7"); x7==7 x7 7 System.out.println(aa+"+"+bb+"-"+cc+"-"+dd+"=7") System.out.println System.out System System.out aa+"+"+bb+"-"+cc+"-"+dd+"=7" dd "-" cc "-" bb aa+"+"+bb+"-"+cc+"-"+dd+"=7" aa "+" bb "-" cc "-" dd "=7" if (x8==7) System.out.println(aa+"-"+bb+"-"+cc+"-"+dd+"=7"); x8==7 x8 7 System.out.println(aa+"-"+bb+"-"+cc+"-"+dd+"=7") System.out.println System.out System System.out aa+"-"+bb+"-"+cc+"-"+dd+"=7" dd "-" cc "-" bb aa+"-"+bb+"-"+cc+"-"+dd+"=7" aa "-" bb "-" cc "-" dd "=7" String[] args args public class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      String s = sc.next();
      int a = Integer.parseInt(s.substring(0,1));
      int b = Integer.parseInt(s.substring(1,2));
      int c = Integer.parseInt(s.substring(2,3));
      int d = Integer.parseInt(s.substring(3,4));
      int x1 = a+b+c+d;
      int x2 = a-b+c+d;
      int x3 = a+b-c+d;
      int x4 = a+b+c-d;
      int x5 = a-b-c+d;
      int x6 = a-b+c-d;
      int x7 = a+b-c-d;
      int x8 = a-b-c-d;
      String aa = String.valueOf(a);
      String bb = String.valueOf(b);
      String cc  =String.valueOf(c);
      String dd = String.valueOf(d);
      if(x1==7) System.out.println(aa+"+"+bb+"+"+cc+"+"+dd+"=7");
      else if (x2==7) System.out.println(aa+"-"+bb+"+"+cc+"+"+dd+"=7");
      else if (x3==7) System.out.println(aa+"+"+bb+"-"+cc+"+"+dd+"=7");
      else if (x4==7) System.out.println(aa+"+"+bb+"+"+cc+"-"+dd+"=7");
      else if (x5==7) System.out.println(aa+"-"+bb+"-"+cc+"+"+dd+"=7");
      else if (x6==7) System.out.println(aa+"-"+bb+"+"+cc+"-"+dd+"=7");
      else if (x7==7) System.out.println(aa+"+"+bb+"-"+cc+"-"+dd+"=7");
      else if (x8==7) System.out.println(aa+"-"+bb+"-"+cc+"-"+dd+"=7");
    }
} public class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      String s = sc.next();
      int a = Integer.parseInt(s.substring(0,1));
      int b = Integer.parseInt(s.substring(1,2));
      int c = Integer.parseInt(s.substring(2,3));
      int d = Integer.parseInt(s.substring(3,4));
      int x1 = a+b+c+d;
      int x2 = a-b+c+d;
      int x3 = a+b-c+d;
      int x4 = a+b+c-d;
      int x5 = a-b-c+d;
      int x6 = a-b+c-d;
      int x7 = a+b-c-d;
      int x8 = a-b-c-d;
      String aa = String.valueOf(a);
      String bb = String.valueOf(b);
      String cc  =String.valueOf(c);
      String dd = String.valueOf(d);
      if(x1==7) System.out.println(aa+"+"+bb+"+"+cc+"+"+dd+"=7");
      else if (x2==7) System.out.println(aa+"-"+bb+"+"+cc+"+"+dd+"=7");
      else if (x3==7) System.out.println(aa+"+"+bb+"-"+cc+"+"+dd+"=7");
      else if (x4==7) System.out.println(aa+"+"+bb+"+"+cc+"-"+dd+"=7");
      else if (x5==7) System.out.println(aa+"-"+bb+"-"+cc+"+"+dd+"=7");
      else if (x6==7) System.out.println(aa+"-"+bb+"+"+cc+"-"+dd+"=7");
      else if (x7==7) System.out.println(aa+"+"+bb+"-"+cc+"-"+dd+"=7");
      else if (x8==7) System.out.println(aa+"-"+bb+"-"+cc+"-"+dd+"=7");
    }
} Main
import java.util.*;
public class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      String s = sc.next();
      int a = Integer.parseInt(s.substring(0,1));
      int b = Integer.parseInt(s.substring(1,2));
      int c = Integer.parseInt(s.substring(2,3));
      int d = Integer.parseInt(s.substring(3,4));
      int x1 = a+b+c+d;
      int x2 = a-b+c+d;
      int x3 = a+b-c+d;
      int x4 = a+b+c-d;
      int x5 = a-b-c+d;
      int x6 = a-b+c-d;
      int x7 = a+b-c-d;
      int x8 = a-b-c-d;
      String aa = String.valueOf(a);
      String bb = String.valueOf(b);
      String cc  =String.valueOf(c);
      String dd = String.valueOf(d);
      if(x1==7) System.out.println(aa+"+"+bb+"+"+cc+"+"+dd+"=7");
      else if (x2==7) System.out.println(aa+"-"+bb+"+"+cc+"+"+dd+"=7");
      else if (x3==7) System.out.println(aa+"+"+bb+"-"+cc+"+"+dd+"=7");
      else if (x4==7) System.out.println(aa+"+"+bb+"+"+cc+"-"+dd+"=7");
      else if (x5==7) System.out.println(aa+"-"+bb+"-"+cc+"+"+dd+"=7");
      else if (x6==7) System.out.println(aa+"-"+bb+"+"+cc+"-"+dd+"=7");
      else if (x7==7) System.out.println(aa+"+"+bb+"-"+cc+"-"+dd+"=7");
      else if (x8==7) System.out.println(aa+"-"+bb+"-"+cc+"-"+dd+"=7");
    }
}