import java.util.*;
class Main{
    public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
	int x = sc.nextInt();
	int d = x%10;
	int c = x/10%10;
	int b = x/10/10%10;
	int a = x/10/10/10%10;
	for(int i = 0; i<8; i++) {
	    int number = i;
	    int cnt = 0;
	    int[] abcd = {a,b,c,d};
	    char[] symbol = {0,0,0};
	    while(cnt < 3) {
		symbol[cnt] = (number%2==0) ? '+': '-';
		number = number/2;
		cnt++;
	    }
	    int result = abcd[0];
	    for(int j = 0; j<3; j++) {
		if(symbol[j]=='+') {
		    result += abcd[j+1];
		}else{
		    result -= abcd[j+1];
		}
	    }
	    if(result == 7) {
		System.out.println(a+""+symbol[0] +""+b+""+ symbol[1] +""+c+""+ symbol[2] +""+d+"=7");
		return;
	    }

	}
    }
} import java.util.*; util.* java class Main{
    public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
	int x = sc.nextInt();
	int d = x%10;
	int c = x/10%10;
	int b = x/10/10%10;
	int a = x/10/10/10%10;
	for(int i = 0; i<8; i++) {
	    int number = i;
	    int cnt = 0;
	    int[] abcd = {a,b,c,d};
	    char[] symbol = {0,0,0};
	    while(cnt < 3) {
		symbol[cnt] = (number%2==0) ? '+': '-';
		number = number/2;
		cnt++;
	    }
	    int result = abcd[0];
	    for(int j = 0; j<3; j++) {
		if(symbol[j]=='+') {
		    result += abcd[j+1];
		}else{
		    result -= abcd[j+1];
		}
	    }
	    if(result == 7) {
		System.out.println(a+""+symbol[0] +""+b+""+ symbol[1] +""+c+""+ symbol[2] +""+d+"=7");
		return;
	    }

	}
    }
} Main public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
	int x = sc.nextInt();
	int d = x%10;
	int c = x/10%10;
	int b = x/10/10%10;
	int a = x/10/10/10%10;
	for(int i = 0; i<8; i++) {
	    int number = i;
	    int cnt = 0;
	    int[] abcd = {a,b,c,d};
	    char[] symbol = {0,0,0};
	    while(cnt < 3) {
		symbol[cnt] = (number%2==0) ? '+': '-';
		number = number/2;
		cnt++;
	    }
	    int result = abcd[0];
	    for(int j = 0; j<3; j++) {
		if(symbol[j]=='+') {
		    result += abcd[j+1];
		}else{
		    result -= abcd[j+1];
		}
	    }
	    if(result == 7) {
		System.out.println(a+""+symbol[0] +""+b+""+ symbol[1] +""+c+""+ symbol[2] +""+d+"=7");
		return;
	    }

	}
    } main {
	Scanner sc = new Scanner(System.in);
	int x = sc.nextInt();
	int d = x%10;
	int c = x/10%10;
	int b = x/10/10%10;
	int a = x/10/10/10%10;
	for(int i = 0; i<8; i++) {
	    int number = i;
	    int cnt = 0;
	    int[] abcd = {a,b,c,d};
	    char[] symbol = {0,0,0};
	    while(cnt < 3) {
		symbol[cnt] = (number%2==0) ? '+': '-';
		number = number/2;
		cnt++;
	    }
	    int result = abcd[0];
	    for(int j = 0; j<3; j++) {
		if(symbol[j]=='+') {
		    result += abcd[j+1];
		}else{
		    result -= abcd[j+1];
		}
	    }
	    if(result == 7) {
		System.out.println(a+""+symbol[0] +""+b+""+ symbol[1] +""+c+""+ symbol[2] +""+d+"=7");
		return;
	    }

	}
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int x = sc.nextInt(); x sc.nextInt() sc.nextInt sc int d = x%10; d x%10 x 10 int c = x/10%10; c x/10%10 x/10 x 10 10 int b = x/10/10%10; b x/10/10%10 x/10/10 x/10/10 x 10 10 10 int a = x/10/10/10%10; a x/10/10/10%10 x/10/10/10 10 x/10/10/10 x 10 10 10 10 for(int i = 0; i<8; i++) {
	    int number = i;
	    int cnt = 0;
	    int[] abcd = {a,b,c,d};
	    char[] symbol = {0,0,0};
	    while(cnt < 3) {
		symbol[cnt] = (number%2==0) ? '+': '-';
		number = number/2;
		cnt++;
	    }
	    int result = abcd[0];
	    for(int j = 0; j<3; j++) {
		if(symbol[j]=='+') {
		    result += abcd[j+1];
		}else{
		    result -= abcd[j+1];
		}
	    }
	    if(result == 7) {
		System.out.println(a+""+symbol[0] +""+b+""+ symbol[1] +""+c+""+ symbol[2] +""+d+"=7");
		return;
	    }

	} int i = 0; int i = 0; i 0 i<8 i 8 i++ i++ i {
	    int number = i;
	    int cnt = 0;
	    int[] abcd = {a,b,c,d};
	    char[] symbol = {0,0,0};
	    while(cnt < 3) {
		symbol[cnt] = (number%2==0) ? '+': '-';
		number = number/2;
		cnt++;
	    }
	    int result = abcd[0];
	    for(int j = 0; j<3; j++) {
		if(symbol[j]=='+') {
		    result += abcd[j+1];
		}else{
		    result -= abcd[j+1];
		}
	    }
	    if(result == 7) {
		System.out.println(a+""+symbol[0] +""+b+""+ symbol[1] +""+c+""+ symbol[2] +""+d+"=7");
		return;
	    }

	} {
	    int number = i;
	    int cnt = 0;
	    int[] abcd = {a,b,c,d};
	    char[] symbol = {0,0,0};
	    while(cnt < 3) {
		symbol[cnt] = (number%2==0) ? '+': '-';
		number = number/2;
		cnt++;
	    }
	    int result = abcd[0];
	    for(int j = 0; j<3; j++) {
		if(symbol[j]=='+') {
		    result += abcd[j+1];
		}else{
		    result -= abcd[j+1];
		}
	    }
	    if(result == 7) {
		System.out.println(a+""+symbol[0] +""+b+""+ symbol[1] +""+c+""+ symbol[2] +""+d+"=7");
		return;
	    }

	} int number = i; number i int cnt = 0; cnt 0 int[] abcd = {a,b,c,d}; abcd {a,b,c,d} a b c d char[] symbol = {0,0,0}; symbol {0,0,0} 0 0 0 while(cnt < 3) {
		symbol[cnt] = (number%2==0) ? '+': '-';
		number = number/2;
		cnt++;
	    } cnt < 3 cnt 3 {
		symbol[cnt] = (number%2==0) ? '+': '-';
		number = number/2;
		cnt++;
	    } symbol[cnt] = (number%2==0) ? '+': '-' symbol[cnt] symbol cnt (number%2==0) ? '+': '-' (number%2==0) number%2 number 2 0 '+' '-' number = number/2 number number/2 number 2 cnt++ cnt int result = abcd[0]; result abcd[0] abcd 0 for(int j = 0; j<3; j++) {
		if(symbol[j]=='+') {
		    result += abcd[j+1];
		}else{
		    result -= abcd[j+1];
		}
	    } int j = 0; int j = 0; j 0 j<3 j 3 j++ j++ j {
		if(symbol[j]=='+') {
		    result += abcd[j+1];
		}else{
		    result -= abcd[j+1];
		}
	    } {
		if(symbol[j]=='+') {
		    result += abcd[j+1];
		}else{
		    result -= abcd[j+1];
		}
	    } if(symbol[j]=='+') {
		    result += abcd[j+1];
		}else{
		    result -= abcd[j+1];
		} symbol[j]=='+' symbol[j] symbol j '+' {
		    result += abcd[j+1];
		} result += abcd[j+1] result abcd[j+1] abcd j+1 j 1 {
		    result -= abcd[j+1];
		} result -= abcd[j+1] result abcd[j+1] abcd j+1 j 1 if(result == 7) {
		System.out.println(a+""+symbol[0] +""+b+""+ symbol[1] +""+c+""+ symbol[2] +""+d+"=7");
		return;
	    } result == 7 result 7 {
		System.out.println(a+""+symbol[0] +""+b+""+ symbol[1] +""+c+""+ symbol[2] +""+d+"=7");
		return;
	    } System.out.println(a+""+symbol[0] +""+b+""+ symbol[1] +""+c+""+ symbol[2] +""+d+"=7") System.out.println System.out System System.out a+""+symbol[0] +""+b+""+ symbol[1] +""+c+""+ symbol[2] +""+d+"=7" d "" symbol[2] "" c "" symbol[1] "" b "" symbol[0] a+""+symbol[0] +""+b+""+ symbol[1] +""+c+""+ symbol[2] +""+d+"=7" a "" symbol[0] symbol 0 "" b "" symbol[1] symbol 1 "" c "" symbol[2] symbol 2 "" d "=7" return; String[] args args
import java.util.*;
class Main{
    public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
	int x = sc.nextInt();
	int d = x%10;
	int c = x/10%10;
	int b = x/10/10%10;
	int a = x/10/10/10%10;
	for(int i = 0; i<8; i++) {
	    int number = i;
	    int cnt = 0;
	    int[] abcd = {a,b,c,d};
	    char[] symbol = {0,0,0};
	    while(cnt < 3) {
		symbol[cnt] = (number%2==0) ? '+': '-';
		number = number/2;
		cnt++;
	    }
	    int result = abcd[0];
	    for(int j = 0; j<3; j++) {
		if(symbol[j]=='+') {
		    result += abcd[j+1];
		}else{
		    result -= abcd[j+1];
		}
	    }
	    if(result == 7) {
		System.out.println(a+""+symbol[0] +""+b+""+ symbol[1] +""+c+""+ symbol[2] +""+d+"=7");
		return;
	    }

	}
    }
}