import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String s=sc.next();
int d=Character.getNumericValue(s.charAt(3));
int c=Character.getNumericValue(s.charAt(2));
int b=Character.getNumericValue(s.charAt(1));
int a=Character.getNumericValue(s.charAt(0));
String op1="",op2="",op3="";
if(a+b+c+d==7){op1="+";op2="+";op3="+";
}else if(a+b+c-d==7){op1="+";op2="+";op3="-";
}else if(a+b-c+d==7){op1="+";op2="-";op3="+";
}else if(a-b+c+d==7){op1="-";op2="+";op3="+";
}else if(a+b-c-d==7){op1="+";op2="-";op3="-";
}else if(a-b+c-d==7){op1="-";op2="+";op3="-";
}else if(a-b-c+d==7){op1="-";op2="-";op3="+";
}else{op1="-";op2="-";op3="-";}
System.out.println(a+op1+b+op2+c+op3+d+"=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 d=Character.getNumericValue(s.charAt(3));
int c=Character.getNumericValue(s.charAt(2));
int b=Character.getNumericValue(s.charAt(1));
int a=Character.getNumericValue(s.charAt(0));
String op1="",op2="",op3="";
if(a+b+c+d==7){op1="+";op2="+";op3="+";
}else if(a+b+c-d==7){op1="+";op2="+";op3="-";
}else if(a+b-c+d==7){op1="+";op2="-";op3="+";
}else if(a-b+c+d==7){op1="-";op2="+";op3="+";
}else if(a+b-c-d==7){op1="+";op2="-";op3="-";
}else if(a-b+c-d==7){op1="-";op2="+";op3="-";
}else if(a-b-c+d==7){op1="-";op2="-";op3="+";
}else{op1="-";op2="-";op3="-";}
System.out.println(a+op1+b+op2+c+op3+d+"=7");
}} Main public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String s=sc.next();
int d=Character.getNumericValue(s.charAt(3));
int c=Character.getNumericValue(s.charAt(2));
int b=Character.getNumericValue(s.charAt(1));
int a=Character.getNumericValue(s.charAt(0));
String op1="",op2="",op3="";
if(a+b+c+d==7){op1="+";op2="+";op3="+";
}else if(a+b+c-d==7){op1="+";op2="+";op3="-";
}else if(a+b-c+d==7){op1="+";op2="-";op3="+";
}else if(a-b+c+d==7){op1="-";op2="+";op3="+";
}else if(a+b-c-d==7){op1="+";op2="-";op3="-";
}else if(a-b+c-d==7){op1="-";op2="+";op3="-";
}else if(a-b-c+d==7){op1="-";op2="-";op3="+";
}else{op1="-";op2="-";op3="-";}
System.out.println(a+op1+b+op2+c+op3+d+"=7");
} main {
Scanner sc = new Scanner(System.in);
String s=sc.next();
int d=Character.getNumericValue(s.charAt(3));
int c=Character.getNumericValue(s.charAt(2));
int b=Character.getNumericValue(s.charAt(1));
int a=Character.getNumericValue(s.charAt(0));
String op1="",op2="",op3="";
if(a+b+c+d==7){op1="+";op2="+";op3="+";
}else if(a+b+c-d==7){op1="+";op2="+";op3="-";
}else if(a+b-c+d==7){op1="+";op2="-";op3="+";
}else if(a-b+c+d==7){op1="-";op2="+";op3="+";
}else if(a+b-c-d==7){op1="+";op2="-";op3="-";
}else if(a-b+c-d==7){op1="-";op2="+";op3="-";
}else if(a-b-c+d==7){op1="-";op2="-";op3="+";
}else{op1="-";op2="-";op3="-";}
System.out.println(a+op1+b+op2+c+op3+d+"=7");
} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s=sc.next(); s sc.next() sc.next sc int d=Character.getNumericValue(s.charAt(3)); d Character.getNumericValue(s.charAt(3)) Character.getNumericValue Character s.charAt(3) s.charAt s 3 int c=Character.getNumericValue(s.charAt(2)); c Character.getNumericValue(s.charAt(2)) Character.getNumericValue Character s.charAt(2) s.charAt s 2 int b=Character.getNumericValue(s.charAt(1)); b Character.getNumericValue(s.charAt(1)) Character.getNumericValue Character s.charAt(1) s.charAt s 1 int a=Character.getNumericValue(s.charAt(0)); a Character.getNumericValue(s.charAt(0)) Character.getNumericValue Character s.charAt(0) s.charAt s 0 String op1="" op1 "" op2="" op2 "" op3=""; op3 "" if(a+b+c+d==7){op1="+";op2="+";op3="+";
}else if(a+b+c-d==7){op1="+";op2="+";op3="-";
}else if(a+b-c+d==7){op1="+";op2="-";op3="+";
}else if(a-b+c+d==7){op1="-";op2="+";op3="+";
}else if(a+b-c-d==7){op1="+";op2="-";op3="-";
}else if(a-b+c-d==7){op1="-";op2="+";op3="-";
}else if(a-b-c+d==7){op1="-";op2="-";op3="+";
}else{op1="-";op2="-";op3="-";} a+b+c+d==7 a+b+c+d c a+b+c+d a b c d 7 {op1="+";op2="+";op3="+";
} op1="+" op1 "+" op2="+" op2 "+" op3="+" op3 "+" if(a+b+c-d==7){op1="+";op2="+";op3="-";
}else if(a+b-c+d==7){op1="+";op2="-";op3="+";
}else if(a-b+c+d==7){op1="-";op2="+";op3="+";
}else if(a+b-c-d==7){op1="+";op2="-";op3="-";
}else if(a-b+c-d==7){op1="-";op2="+";op3="-";
}else if(a-b-c+d==7){op1="-";op2="-";op3="+";
}else{op1="-";op2="-";op3="-";} a+b+c-d==7 a+b+c-d a+b+c a+b+c a b c d 7 {op1="+";op2="+";op3="-";
} op1="+" op1 "+" op2="+" op2 "+" op3="-" op3 "-" if(a+b-c+d==7){op1="+";op2="-";op3="+";
}else if(a-b+c+d==7){op1="-";op2="+";op3="+";
}else if(a+b-c-d==7){op1="+";op2="-";op3="-";
}else if(a-b+c-d==7){op1="-";op2="+";op3="-";
}else if(a-b-c+d==7){op1="-";op2="-";op3="+";
}else{op1="-";op2="-";op3="-";} a+b-c+d==7 a+b-c+d a+b-c a+b a b c d 7 {op1="+";op2="-";op3="+";
} op1="+" op1 "+" op2="-" op2 "-" op3="+" op3 "+" if(a-b+c+d==7){op1="-";op2="+";op3="+";
}else if(a+b-c-d==7){op1="+";op2="-";op3="-";
}else if(a-b+c-d==7){op1="-";op2="+";op3="-";
}else if(a-b-c+d==7){op1="-";op2="-";op3="+";
}else{op1="-";op2="-";op3="-";} a-b+c+d==7 a-b+c+d a-b+c+d a-b a b c d 7 {op1="-";op2="+";op3="+";
} op1="-" op1 "-" op2="+" op2 "+" op3="+" op3 "+" if(a+b-c-d==7){op1="+";op2="-";op3="-";
}else if(a-b+c-d==7){op1="-";op2="+";op3="-";
}else if(a-b-c+d==7){op1="-";op2="-";op3="+";
}else{op1="-";op2="-";op3="-";} a+b-c-d==7 a+b-c-d a+b-c-d a+b a b c d 7 {op1="+";op2="-";op3="-";
} op1="+" op1 "+" op2="-" op2 "-" op3="-" op3 "-" if(a-b+c-d==7){op1="-";op2="+";op3="-";
}else if(a-b-c+d==7){op1="-";op2="-";op3="+";
}else{op1="-";op2="-";op3="-";} a-b+c-d==7 a-b+c-d a-b+c a-b a b c d 7 {op1="-";op2="+";op3="-";
} op1="-" op1 "-" op2="+" op2 "+" op3="-" op3 "-" if(a-b-c+d==7){op1="-";op2="-";op3="+";
}else{op1="-";op2="-";op3="-";} a-b-c+d==7 a-b-c+d a-b-c a-b-c a b c d 7 {op1="-";op2="-";op3="+";
} op1="-" op1 "-" op2="-" op2 "-" op3="+" op3 "+" {op1="-";op2="-";op3="-";} op1="-" op1 "-" op2="-" op2 "-" op3="-" op3 "-" System.out.println(a+op1+b+op2+c+op3+d+"=7") System.out.println System.out System System.out a+op1+b+op2+c+op3+d+"=7" d op3 c op2 b a+op1+b+op2+c+op3+d+"=7" a op1 b op2 c op3 d "=7" String[] args args public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String s=sc.next();
int d=Character.getNumericValue(s.charAt(3));
int c=Character.getNumericValue(s.charAt(2));
int b=Character.getNumericValue(s.charAt(1));
int a=Character.getNumericValue(s.charAt(0));
String op1="",op2="",op3="";
if(a+b+c+d==7){op1="+";op2="+";op3="+";
}else if(a+b+c-d==7){op1="+";op2="+";op3="-";
}else if(a+b-c+d==7){op1="+";op2="-";op3="+";
}else if(a-b+c+d==7){op1="-";op2="+";op3="+";
}else if(a+b-c-d==7){op1="+";op2="-";op3="-";
}else if(a-b+c-d==7){op1="-";op2="+";op3="-";
}else if(a-b-c+d==7){op1="-";op2="-";op3="+";
}else{op1="-";op2="-";op3="-";}
System.out.println(a+op1+b+op2+c+op3+d+"=7");
}} public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String s=sc.next();
int d=Character.getNumericValue(s.charAt(3));
int c=Character.getNumericValue(s.charAt(2));
int b=Character.getNumericValue(s.charAt(1));
int a=Character.getNumericValue(s.charAt(0));
String op1="",op2="",op3="";
if(a+b+c+d==7){op1="+";op2="+";op3="+";
}else if(a+b+c-d==7){op1="+";op2="+";op3="-";
}else if(a+b-c+d==7){op1="+";op2="-";op3="+";
}else if(a-b+c+d==7){op1="-";op2="+";op3="+";
}else if(a+b-c-d==7){op1="+";op2="-";op3="-";
}else if(a-b+c-d==7){op1="-";op2="+";op3="-";
}else if(a-b-c+d==7){op1="-";op2="-";op3="+";
}else{op1="-";op2="-";op3="-";}
System.out.println(a+op1+b+op2+c+op3+d+"=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 d=Character.getNumericValue(s.charAt(3));
int c=Character.getNumericValue(s.charAt(2));
int b=Character.getNumericValue(s.charAt(1));
int a=Character.getNumericValue(s.charAt(0));
String op1="",op2="",op3="";
if(a+b+c+d==7){op1="+";op2="+";op3="+";
}else if(a+b+c-d==7){op1="+";op2="+";op3="-";
}else if(a+b-c+d==7){op1="+";op2="-";op3="+";
}else if(a-b+c+d==7){op1="-";op2="+";op3="+";
}else if(a+b-c-d==7){op1="+";op2="-";op3="-";
}else if(a-b+c-d==7){op1="-";op2="+";op3="-";
}else if(a-b-c+d==7){op1="-";op2="-";op3="+";
}else{op1="-";op2="-";op3="-";}
System.out.println(a+op1+b+op2+c+op3+d+"=7");
}}