import java.util.Scanner;
public class Main {
	public static void main(String args[] ) {
		Scanner sc = new Scanner(System.in);
		
		String abcd = sc.next();
		int[] a = new int[4];
		
		a[0] = abcd.charAt(0)-'0';
		a[1] = abcd.charAt(1)-'0';
		a[2] = abcd.charAt(2)-'0';
		a[3] = abcd.charAt(3)-'0';

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

		char[] op = new char[3];
		for( int i = 0; i < (1<<3); i++ ) {
			int sum = a[0];
			for( int j = 0; j < 3; j++ ) {
				if( (1&(i>>j)) == 1 ) {
					sum += a[j+1];
					op[j] = '+';
				}
				else {
					sum -= a[j+1];
					op[j] = '-';
				}
			}
			
			if( sum == 7 ) {
				for( int j = 0; j < 4; j++ ) {
					if( j != 3 )
						System.out.print( a[j] + "" + op[j] );
					else
						System.out.println( a[j] + "=7" );
				}
				break;
			}
		}
		
		sc.close();
	}
} Main public static void main(String args[] ) {
		Scanner sc = new Scanner(System.in);
		
		String abcd = sc.next();
		int[] a = new int[4];
		
		a[0] = abcd.charAt(0)-'0';
		a[1] = abcd.charAt(1)-'0';
		a[2] = abcd.charAt(2)-'0';
		a[3] = abcd.charAt(3)-'0';

		char[] op = new char[3];
		for( int i = 0; i < (1<<3); i++ ) {
			int sum = a[0];
			for( int j = 0; j < 3; j++ ) {
				if( (1&(i>>j)) == 1 ) {
					sum += a[j+1];
					op[j] = '+';
				}
				else {
					sum -= a[j+1];
					op[j] = '-';
				}
			}
			
			if( sum == 7 ) {
				for( int j = 0; j < 4; j++ ) {
					if( j != 3 )
						System.out.print( a[j] + "" + op[j] );
					else
						System.out.println( a[j] + "=7" );
				}
				break;
			}
		}
		
		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);
		
		String abcd = sc.next();
		int[] a = new int[4];
		
		a[0] = abcd.charAt(0)-'0';
		a[1] = abcd.charAt(1)-'0';
		a[2] = abcd.charAt(2)-'0';
		a[3] = abcd.charAt(3)-'0';

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

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

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

		char[] op = new char[3];
		for( int i = 0; i < (1<<3); i++ ) {
			int sum = a[0];
			for( int j = 0; j < 3; j++ ) {
				if( (1&(i>>j)) == 1 ) {
					sum += a[j+1];
					op[j] = '+';
				}
				else {
					sum -= a[j+1];
					op[j] = '-';
				}
			}
			
			if( sum == 7 ) {
				for( int j = 0; j < 4; j++ ) {
					if( j != 3 )
						System.out.print( a[j] + "" + op[j] );
					else
						System.out.println( a[j] + "=7" );
				}
				break;
			}
		}
		
		sc.close();
	}
}