
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Main main = new Main();
		main.run();
	}



	public void run() {
		Scanner sc = new Scanner(System.in);
		char abcd[] = sc.next().toCharArray();
		int a = abcd[0] - '0';
		int b = abcd[1] - '0';
		int c = abcd[2] - '0';
		int d = abcd[3] - '0';
		if     (a+b+c+d==7)System.out.printf("%d+%d+%d+%d=7\n", a,b,c,d);
		else if(a+b+c-d==7)System.out.printf("%d+%d+%d-%d=7\n", a,b,c,d);
		else if(a+b-c+d==7)System.out.printf("%d+%d-%d+%d=7\n", a,b,c,d);
		else if(a+b-c-d==7)System.out.printf("%d+%d-%d-%d=7\n", a,b,c,d);
		else if(a-b+c+d==7)System.out.printf("%d-%d+%d+%d=7\n", a,b,c,d);
		else if(a-b+c-d==7)System.out.printf("%d-%d+%d-%d=7\n", a,b,c,d);
		else if(a-b-c+d==7)System.out.printf("%d-%d-%d+%d=7\n", a,b,c,d);
		else if(a-b-c-d==7)System.out.printf("%d-%d-%d-%d=7\n", a,b,c,d);
		sc.close();
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Main main = new Main();
		main.run();
	}



	public void run() {
		Scanner sc = new Scanner(System.in);
		char abcd[] = sc.next().toCharArray();
		int a = abcd[0] - '0';
		int b = abcd[1] - '0';
		int c = abcd[2] - '0';
		int d = abcd[3] - '0';
		if     (a+b+c+d==7)System.out.printf("%d+%d+%d+%d=7\n", a,b,c,d);
		else if(a+b+c-d==7)System.out.printf("%d+%d+%d-%d=7\n", a,b,c,d);
		else if(a+b-c+d==7)System.out.printf("%d+%d-%d+%d=7\n", a,b,c,d);
		else if(a+b-c-d==7)System.out.printf("%d+%d-%d-%d=7\n", a,b,c,d);
		else if(a-b+c+d==7)System.out.printf("%d-%d+%d+%d=7\n", a,b,c,d);
		else if(a-b+c-d==7)System.out.printf("%d-%d+%d-%d=7\n", a,b,c,d);
		else if(a-b-c+d==7)System.out.printf("%d-%d-%d+%d=7\n", a,b,c,d);
		else if(a-b-c-d==7)System.out.printf("%d-%d-%d-%d=7\n", a,b,c,d);
		sc.close();
	}

} Main public static void main(String[] args) {
		Main main = new Main();
		main.run();
	} main {
		Main main = new Main();
		main.run();
	} Main main = new Main(); main new Main() main.run() main.run main String[] args args public void run() {
		Scanner sc = new Scanner(System.in);
		char abcd[] = sc.next().toCharArray();
		int a = abcd[0] - '0';
		int b = abcd[1] - '0';
		int c = abcd[2] - '0';
		int d = abcd[3] - '0';
		if     (a+b+c+d==7)System.out.printf("%d+%d+%d+%d=7\n", a,b,c,d);
		else if(a+b+c-d==7)System.out.printf("%d+%d+%d-%d=7\n", a,b,c,d);
		else if(a+b-c+d==7)System.out.printf("%d+%d-%d+%d=7\n", a,b,c,d);
		else if(a+b-c-d==7)System.out.printf("%d+%d-%d-%d=7\n", a,b,c,d);
		else if(a-b+c+d==7)System.out.printf("%d-%d+%d+%d=7\n", a,b,c,d);
		else if(a-b+c-d==7)System.out.printf("%d-%d+%d-%d=7\n", a,b,c,d);
		else if(a-b-c+d==7)System.out.printf("%d-%d-%d+%d=7\n", a,b,c,d);
		else if(a-b-c-d==7)System.out.printf("%d-%d-%d-%d=7\n", a,b,c,d);
		sc.close();
	} run {
		Scanner sc = new Scanner(System.in);
		char abcd[] = sc.next().toCharArray();
		int a = abcd[0] - '0';
		int b = abcd[1] - '0';
		int c = abcd[2] - '0';
		int d = abcd[3] - '0';
		if     (a+b+c+d==7)System.out.printf("%d+%d+%d+%d=7\n", a,b,c,d);
		else if(a+b+c-d==7)System.out.printf("%d+%d+%d-%d=7\n", a,b,c,d);
		else if(a+b-c+d==7)System.out.printf("%d+%d-%d+%d=7\n", a,b,c,d);
		else if(a+b-c-d==7)System.out.printf("%d+%d-%d-%d=7\n", a,b,c,d);
		else if(a-b+c+d==7)System.out.printf("%d-%d+%d+%d=7\n", a,b,c,d);
		else if(a-b+c-d==7)System.out.printf("%d-%d+%d-%d=7\n", a,b,c,d);
		else if(a-b-c+d==7)System.out.printf("%d-%d-%d+%d=7\n", a,b,c,d);
		else if(a-b-c-d==7)System.out.printf("%d-%d-%d-%d=7\n", a,b,c,d);
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) char abcd[] = sc.next().toCharArray(); abcd sc.next().toCharArray() sc.next().toCharArray sc.next() sc.next sc int a = abcd[0] - '0'; a abcd[0] - '0' abcd[0] abcd 0 '0' int b = abcd[1] - '0'; b abcd[1] - '0' abcd[1] abcd 1 '0' int c = abcd[2] - '0'; c abcd[2] - '0' abcd[2] abcd 2 '0' int d = abcd[3] - '0'; d abcd[3] - '0' abcd[3] abcd 3 '0' if     (a+b+c+d==7)System.out.printf("%d+%d+%d+%d=7\n", a,b,c,d);
		else if(a+b+c-d==7)System.out.printf("%d+%d+%d-%d=7\n", a,b,c,d);
		else if(a+b-c+d==7)System.out.printf("%d+%d-%d+%d=7\n", a,b,c,d);
		else if(a+b-c-d==7)System.out.printf("%d+%d-%d-%d=7\n", a,b,c,d);
		else if(a-b+c+d==7)System.out.printf("%d-%d+%d+%d=7\n", a,b,c,d);
		else if(a-b+c-d==7)System.out.printf("%d-%d+%d-%d=7\n", a,b,c,d);
		else if(a-b-c+d==7)System.out.printf("%d-%d-%d+%d=7\n", a,b,c,d);
		else if(a-b-c-d==7)System.out.printf("%d-%d-%d-%d=7\n", a,b,c,d); a+b+c+d==7 a+b+c+d c a+b+c+d a b c d 7 System.out.printf("%d+%d+%d+%d=7\n", a,b,c,d) System.out.printf System.out System System.out "%d+%d+%d+%d=7\n" a b c d if(a+b+c-d==7)System.out.printf("%d+%d+%d-%d=7\n", a,b,c,d);
		else if(a+b-c+d==7)System.out.printf("%d+%d-%d+%d=7\n", a,b,c,d);
		else if(a+b-c-d==7)System.out.printf("%d+%d-%d-%d=7\n", a,b,c,d);
		else if(a-b+c+d==7)System.out.printf("%d-%d+%d+%d=7\n", a,b,c,d);
		else if(a-b+c-d==7)System.out.printf("%d-%d+%d-%d=7\n", a,b,c,d);
		else if(a-b-c+d==7)System.out.printf("%d-%d-%d+%d=7\n", a,b,c,d);
		else if(a-b-c-d==7)System.out.printf("%d-%d-%d-%d=7\n", a,b,c,d); a+b+c-d==7 a+b+c-d a+b+c a+b+c a b c d 7 System.out.printf("%d+%d+%d-%d=7\n", a,b,c,d) System.out.printf System.out System System.out "%d+%d+%d-%d=7\n" a b c d if(a+b-c+d==7)System.out.printf("%d+%d-%d+%d=7\n", a,b,c,d);
		else if(a+b-c-d==7)System.out.printf("%d+%d-%d-%d=7\n", a,b,c,d);
		else if(a-b+c+d==7)System.out.printf("%d-%d+%d+%d=7\n", a,b,c,d);
		else if(a-b+c-d==7)System.out.printf("%d-%d+%d-%d=7\n", a,b,c,d);
		else if(a-b-c+d==7)System.out.printf("%d-%d-%d+%d=7\n", a,b,c,d);
		else if(a-b-c-d==7)System.out.printf("%d-%d-%d-%d=7\n", a,b,c,d); a+b-c+d==7 a+b-c+d a+b-c a+b a b c d 7 System.out.printf("%d+%d-%d+%d=7\n", a,b,c,d) System.out.printf System.out System System.out "%d+%d-%d+%d=7\n" a b c d if(a+b-c-d==7)System.out.printf("%d+%d-%d-%d=7\n", a,b,c,d);
		else if(a-b+c+d==7)System.out.printf("%d-%d+%d+%d=7\n", a,b,c,d);
		else if(a-b+c-d==7)System.out.printf("%d-%d+%d-%d=7\n", a,b,c,d);
		else if(a-b-c+d==7)System.out.printf("%d-%d-%d+%d=7\n", a,b,c,d);
		else if(a-b-c-d==7)System.out.printf("%d-%d-%d-%d=7\n", a,b,c,d); a+b-c-d==7 a+b-c-d a+b-c-d a+b a b c d 7 System.out.printf("%d+%d-%d-%d=7\n", a,b,c,d) System.out.printf System.out System System.out "%d+%d-%d-%d=7\n" a b c d if(a-b+c+d==7)System.out.printf("%d-%d+%d+%d=7\n", a,b,c,d);
		else if(a-b+c-d==7)System.out.printf("%d-%d+%d-%d=7\n", a,b,c,d);
		else if(a-b-c+d==7)System.out.printf("%d-%d-%d+%d=7\n", a,b,c,d);
		else if(a-b-c-d==7)System.out.printf("%d-%d-%d-%d=7\n", a,b,c,d); a-b+c+d==7 a-b+c+d a-b+c+d a-b a b c d 7 System.out.printf("%d-%d+%d+%d=7\n", a,b,c,d) System.out.printf System.out System System.out "%d-%d+%d+%d=7\n" a b c d if(a-b+c-d==7)System.out.printf("%d-%d+%d-%d=7\n", a,b,c,d);
		else if(a-b-c+d==7)System.out.printf("%d-%d-%d+%d=7\n", a,b,c,d);
		else if(a-b-c-d==7)System.out.printf("%d-%d-%d-%d=7\n", a,b,c,d); a-b+c-d==7 a-b+c-d a-b+c a-b a b c d 7 System.out.printf("%d-%d+%d-%d=7\n", a,b,c,d) System.out.printf System.out System System.out "%d-%d+%d-%d=7\n" a b c d if(a-b-c+d==7)System.out.printf("%d-%d-%d+%d=7\n", a,b,c,d);
		else if(a-b-c-d==7)System.out.printf("%d-%d-%d-%d=7\n", a,b,c,d); a-b-c+d==7 a-b-c+d a-b-c a-b-c a b c d 7 System.out.printf("%d-%d-%d+%d=7\n", a,b,c,d) System.out.printf System.out System System.out "%d-%d-%d+%d=7\n" a b c d if(a-b-c-d==7)System.out.printf("%d-%d-%d-%d=7\n", a,b,c,d); a-b-c-d==7 a-b-c-d c a-b-c-d a b c d 7 System.out.printf("%d-%d-%d-%d=7\n", a,b,c,d) System.out.printf System.out System System.out "%d-%d-%d-%d=7\n" a b c d sc.close() sc.close sc public class Main {

	public static void main(String[] args) {
		Main main = new Main();
		main.run();
	}



	public void run() {
		Scanner sc = new Scanner(System.in);
		char abcd[] = sc.next().toCharArray();
		int a = abcd[0] - '0';
		int b = abcd[1] - '0';
		int c = abcd[2] - '0';
		int d = abcd[3] - '0';
		if     (a+b+c+d==7)System.out.printf("%d+%d+%d+%d=7\n", a,b,c,d);
		else if(a+b+c-d==7)System.out.printf("%d+%d+%d-%d=7\n", a,b,c,d);
		else if(a+b-c+d==7)System.out.printf("%d+%d-%d+%d=7\n", a,b,c,d);
		else if(a+b-c-d==7)System.out.printf("%d+%d-%d-%d=7\n", a,b,c,d);
		else if(a-b+c+d==7)System.out.printf("%d-%d+%d+%d=7\n", a,b,c,d);
		else if(a-b+c-d==7)System.out.printf("%d-%d+%d-%d=7\n", a,b,c,d);
		else if(a-b-c+d==7)System.out.printf("%d-%d-%d+%d=7\n", a,b,c,d);
		else if(a-b-c-d==7)System.out.printf("%d-%d-%d-%d=7\n", a,b,c,d);
		sc.close();
	}

} public class Main {

	public static void main(String[] args) {
		Main main = new Main();
		main.run();
	}



	public void run() {
		Scanner sc = new Scanner(System.in);
		char abcd[] = sc.next().toCharArray();
		int a = abcd[0] - '0';
		int b = abcd[1] - '0';
		int c = abcd[2] - '0';
		int d = abcd[3] - '0';
		if     (a+b+c+d==7)System.out.printf("%d+%d+%d+%d=7\n", a,b,c,d);
		else if(a+b+c-d==7)System.out.printf("%d+%d+%d-%d=7\n", a,b,c,d);
		else if(a+b-c+d==7)System.out.printf("%d+%d-%d+%d=7\n", a,b,c,d);
		else if(a+b-c-d==7)System.out.printf("%d+%d-%d-%d=7\n", a,b,c,d);
		else if(a-b+c+d==7)System.out.printf("%d-%d+%d+%d=7\n", a,b,c,d);
		else if(a-b+c-d==7)System.out.printf("%d-%d+%d-%d=7\n", a,b,c,d);
		else if(a-b-c+d==7)System.out.printf("%d-%d-%d+%d=7\n", a,b,c,d);
		else if(a-b-c-d==7)System.out.printf("%d-%d-%d-%d=7\n", a,b,c,d);
		sc.close();
	}

} Main

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Main main = new Main();
		main.run();
	}



	public void run() {
		Scanner sc = new Scanner(System.in);
		char abcd[] = sc.next().toCharArray();
		int a = abcd[0] - '0';
		int b = abcd[1] - '0';
		int c = abcd[2] - '0';
		int d = abcd[3] - '0';
		if     (a+b+c+d==7)System.out.printf("%d+%d+%d+%d=7\n", a,b,c,d);
		else if(a+b+c-d==7)System.out.printf("%d+%d+%d-%d=7\n", a,b,c,d);
		else if(a+b-c+d==7)System.out.printf("%d+%d-%d+%d=7\n", a,b,c,d);
		else if(a+b-c-d==7)System.out.printf("%d+%d-%d-%d=7\n", a,b,c,d);
		else if(a-b+c+d==7)System.out.printf("%d-%d+%d+%d=7\n", a,b,c,d);
		else if(a-b+c-d==7)System.out.printf("%d-%d+%d-%d=7\n", a,b,c,d);
		else if(a-b-c+d==7)System.out.printf("%d-%d-%d+%d=7\n", a,b,c,d);
		else if(a-b-c-d==7)System.out.printf("%d-%d-%d-%d=7\n", a,b,c,d);
		sc.close();
	}

}
