import java.util.Scanner;
public class Main {
	public static int[] a = new int[4];
	public static char[] op = new char[3];
	public static void dfs( int n ) {
		if( n == 3 ) {
			int sum = a[0];
			for( int i = 0; i < 3; i++ ) {
				if( op[i] == '+'  )
					sum += a[i+1];
				else
					sum -= a[i+1];
			}
			if(sum == 7) {
				for( int i = 0; i < 4; i++ ) {
					if( i != 3 )
						System.out.print( a[i] + "" + op[i] );
					else
						System.out.println( a[i] + "=7" );
				}
				System.exit(0);
			}
		}
		else {
			op[n] = '+';
			dfs(n+1);
			op[n] = '-';
			dfs(n+1);
		}
	}
	
	public static void main(String args[] ) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		a[0] = s.charAt(0)-'0';
		a[1] = s.charAt(1)-'0';
		a[2] = s.charAt(2)-'0';
		a[3] = s.charAt(3)-'0';
		dfs(0);
		sc.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static int[] a = new int[4];
	public static char[] op = new char[3];
	public static void dfs( int n ) {
		if( n == 3 ) {
			int sum = a[0];
			for( int i = 0; i < 3; i++ ) {
				if( op[i] == '+'  )
					sum += a[i+1];
				else
					sum -= a[i+1];
			}
			if(sum == 7) {
				for( int i = 0; i < 4; i++ ) {
					if( i != 3 )
						System.out.print( a[i] + "" + op[i] );
					else
						System.out.println( a[i] + "=7" );
				}
				System.exit(0);
			}
		}
		else {
			op[n] = '+';
			dfs(n+1);
			op[n] = '-';
			dfs(n+1);
		}
	}
	
	public static void main(String args[] ) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		a[0] = s.charAt(0)-'0';
		a[1] = s.charAt(1)-'0';
		a[2] = s.charAt(2)-'0';
		a[3] = s.charAt(3)-'0';
		dfs(0);
		sc.close();
	}
} Main public static int[] a = new int[4]; a new int[4] 4 public static char[] op = new char[3]; op new char[3] 3 public static void dfs( int n ) {
		if( n == 3 ) {
			int sum = a[0];
			for( int i = 0; i < 3; i++ ) {
				if( op[i] == '+'  )
					sum += a[i+1];
				else
					sum -= a[i+1];
			}
			if(sum == 7) {
				for( int i = 0; i < 4; i++ ) {
					if( i != 3 )
						System.out.print( a[i] + "" + op[i] );
					else
						System.out.println( a[i] + "=7" );
				}
				System.exit(0);
			}
		}
		else {
			op[n] = '+';
			dfs(n+1);
			op[n] = '-';
			dfs(n+1);
		}
	} dfs {
		if( n == 3 ) {
			int sum = a[0];
			for( int i = 0; i < 3; i++ ) {
				if( op[i] == '+'  )
					sum += a[i+1];
				else
					sum -= a[i+1];
			}
			if(sum == 7) {
				for( int i = 0; i < 4; i++ ) {
					if( i != 3 )
						System.out.print( a[i] + "" + op[i] );
					else
						System.out.println( a[i] + "=7" );
				}
				System.exit(0);
			}
		}
		else {
			op[n] = '+';
			dfs(n+1);
			op[n] = '-';
			dfs(n+1);
		}
	} if( n == 3 ) {
			int sum = a[0];
			for( int i = 0; i < 3; i++ ) {
				if( op[i] == '+'  )
					sum += a[i+1];
				else
					sum -= a[i+1];
			}
			if(sum == 7) {
				for( int i = 0; i < 4; i++ ) {
					if( i != 3 )
						System.out.print( a[i] + "" + op[i] );
					else
						System.out.println( a[i] + "=7" );
				}
				System.exit(0);
			}
		}
		else {
			op[n] = '+';
			dfs(n+1);
			op[n] = '-';
			dfs(n+1);
		} n == 3 n 3 {
			int sum = a[0];
			for( int i = 0; i < 3; i++ ) {
				if( op[i] == '+'  )
					sum += a[i+1];
				else
					sum -= a[i+1];
			}
			if(sum == 7) {
				for( int i = 0; i < 4; i++ ) {
					if( i != 3 )
						System.out.print( a[i] + "" + op[i] );
					else
						System.out.println( a[i] + "=7" );
				}
				System.exit(0);
			}
		} int sum = a[0]; sum a[0] a 0 for( int i = 0; i < 3; i++ ) {
				if( op[i] == '+'  )
					sum += a[i+1];
				else
					sum -= a[i+1];
			} int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
				if( op[i] == '+'  )
					sum += a[i+1];
				else
					sum -= a[i+1];
			} {
				if( op[i] == '+'  )
					sum += a[i+1];
				else
					sum -= a[i+1];
			} if( op[i] == '+'  )
					sum += a[i+1];
				else
					sum -= a[i+1]; op[i] == '+' op[i] op i '+' sum += a[i+1] sum a[i+1] a i+1 i 1 sum -= a[i+1] sum a[i+1] a i+1 i 1 if(sum == 7) {
				for( int i = 0; i < 4; i++ ) {
					if( i != 3 )
						System.out.print( a[i] + "" + op[i] );
					else
						System.out.println( a[i] + "=7" );
				}
				System.exit(0);
			} sum == 7 sum 7 {
				for( int i = 0; i < 4; i++ ) {
					if( i != 3 )
						System.out.print( a[i] + "" + op[i] );
					else
						System.out.println( a[i] + "=7" );
				}
				System.exit(0);
			} for( int i = 0; i < 4; i++ ) {
					if( i != 3 )
						System.out.print( a[i] + "" + op[i] );
					else
						System.out.println( a[i] + "=7" );
				} int i = 0; int i = 0; i 0 i < 4 i 4 i++ i++ i {
					if( i != 3 )
						System.out.print( a[i] + "" + op[i] );
					else
						System.out.println( a[i] + "=7" );
				} {
					if( i != 3 )
						System.out.print( a[i] + "" + op[i] );
					else
						System.out.println( a[i] + "=7" );
				} if( i != 3 )
						System.out.print( a[i] + "" + op[i] );
					else
						System.out.println( a[i] + "=7" ); i != 3 i 3 System.out.print( a[i] + "" + op[i] ) System.out.print System.out System System.out a[i] + "" + op[i] a[i] + "" + op[i] a[i] a i "" op[i] op i System.out.println( a[i] + "=7" ) System.out.println System.out System System.out a[i] + "=7" a[i] a i "=7" System.exit(0) System.exit System 0 {
			op[n] = '+';
			dfs(n+1);
			op[n] = '-';
			dfs(n+1);
		} op[n] = '+' op[n] op n '+' dfs(n+1) dfs n+1 n 1 op[n] = '-' op[n] op n '-' dfs(n+1) dfs n+1 n 1 int n n public static void main(String args[] ) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		a[0] = s.charAt(0)-'0';
		a[1] = s.charAt(1)-'0';
		a[2] = s.charAt(2)-'0';
		a[3] = s.charAt(3)-'0';
		dfs(0);
		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		a[0] = s.charAt(0)-'0';
		a[1] = s.charAt(1)-'0';
		a[2] = s.charAt(2)-'0';
		a[3] = s.charAt(3)-'0';
		dfs(0);
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc a[0] = s.charAt(0)-'0' a[0] a 0 s.charAt(0)-'0' s.charAt(0) s.charAt s 0 '0' a[1] = s.charAt(1)-'0' a[1] a 1 s.charAt(1)-'0' s.charAt(1) s.charAt s 1 '0' a[2] = s.charAt(2)-'0' a[2] a 2 s.charAt(2)-'0' s.charAt(2) s.charAt s 2 '0' a[3] = s.charAt(3)-'0' a[3] a 3 s.charAt(3)-'0' s.charAt(3) s.charAt s 3 '0' dfs(0) dfs 0 sc.close() sc.close sc String args[] args public class Main {
	public static int[] a = new int[4];
	public static char[] op = new char[3];
	public static void dfs( int n ) {
		if( n == 3 ) {
			int sum = a[0];
			for( int i = 0; i < 3; i++ ) {
				if( op[i] == '+'  )
					sum += a[i+1];
				else
					sum -= a[i+1];
			}
			if(sum == 7) {
				for( int i = 0; i < 4; i++ ) {
					if( i != 3 )
						System.out.print( a[i] + "" + op[i] );
					else
						System.out.println( a[i] + "=7" );
				}
				System.exit(0);
			}
		}
		else {
			op[n] = '+';
			dfs(n+1);
			op[n] = '-';
			dfs(n+1);
		}
	}
	
	public static void main(String args[] ) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		a[0] = s.charAt(0)-'0';
		a[1] = s.charAt(1)-'0';
		a[2] = s.charAt(2)-'0';
		a[3] = s.charAt(3)-'0';
		dfs(0);
		sc.close();
	}
} public class Main {
	public static int[] a = new int[4];
	public static char[] op = new char[3];
	public static void dfs( int n ) {
		if( n == 3 ) {
			int sum = a[0];
			for( int i = 0; i < 3; i++ ) {
				if( op[i] == '+'  )
					sum += a[i+1];
				else
					sum -= a[i+1];
			}
			if(sum == 7) {
				for( int i = 0; i < 4; i++ ) {
					if( i != 3 )
						System.out.print( a[i] + "" + op[i] );
					else
						System.out.println( a[i] + "=7" );
				}
				System.exit(0);
			}
		}
		else {
			op[n] = '+';
			dfs(n+1);
			op[n] = '-';
			dfs(n+1);
		}
	}
	
	public static void main(String args[] ) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		a[0] = s.charAt(0)-'0';
		a[1] = s.charAt(1)-'0';
		a[2] = s.charAt(2)-'0';
		a[3] = s.charAt(3)-'0';
		dfs(0);
		sc.close();
	}
} Main
import java.util.Scanner;
public class Main {
	public static int[] a = new int[4];
	public static char[] op = new char[3];
	public static void dfs( int n ) {
		if( n == 3 ) {
			int sum = a[0];
			for( int i = 0; i < 3; i++ ) {
				if( op[i] == '+'  )
					sum += a[i+1];
				else
					sum -= a[i+1];
			}
			if(sum == 7) {
				for( int i = 0; i < 4; i++ ) {
					if( i != 3 )
						System.out.print( a[i] + "" + op[i] );
					else
						System.out.println( a[i] + "=7" );
				}
				System.exit(0);
			}
		}
		else {
			op[n] = '+';
			dfs(n+1);
			op[n] = '-';
			dfs(n+1);
		}
	}
	
	public static void main(String args[] ) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		a[0] = s.charAt(0)-'0';
		a[1] = s.charAt(1)-'0';
		a[2] = s.charAt(2)-'0';
		a[3] = s.charAt(3)-'0';
		dfs(0);
		sc.close();
	}
}