import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		char[] s = sc.next().toCharArray();
		int a = s[0] - '0';
		int b = s[1] - '0';
		int c = s[2] - '0';
		int d = s[3] - '0';

		if(a+b+c+d ==7) {
			System.out.printf("%d+%d+%d+%d=7",a,b,c,d);
		}else if(a+b+c-d ==7) {
			System.out.printf("%d+%d+%d-%d=7",a,b,c,d);
		}else if(a+b-c+d ==7) {
			System.out.printf("%d+%d-%d+%d=7",a,b,c,d);
		}else if(a+b-c-d ==7) {
			System.out.printf("%d+%d-%d-%d=7",a,b,c,d);
		}else if(a-b+c+d ==7) {
			System.out.printf("%d-%d+%d+%d=7",a,b,c,d);
		}else if(a-b+c-d ==7) {
			System.out.printf("%d-%d+%d-%d=7",a,b,c,d);
		}else if(a-b-c+d ==7) {
			System.out.printf("%d-%d-%d+%d=7",a,b,c,d);
		}else if(a-b-c-d ==7) {
			System.out.printf("%d-%d-%d-%d=7",a,b,c,d);
		}

		sc.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		char[] s = sc.next().toCharArray();
		int a = s[0] - '0';
		int b = s[1] - '0';
		int c = s[2] - '0';
		int d = s[3] - '0';

		if(a+b+c+d ==7) {
			System.out.printf("%d+%d+%d+%d=7",a,b,c,d);
		}else if(a+b+c-d ==7) {
			System.out.printf("%d+%d+%d-%d=7",a,b,c,d);
		}else if(a+b-c+d ==7) {
			System.out.printf("%d+%d-%d+%d=7",a,b,c,d);
		}else if(a+b-c-d ==7) {
			System.out.printf("%d+%d-%d-%d=7",a,b,c,d);
		}else if(a-b+c+d ==7) {
			System.out.printf("%d-%d+%d+%d=7",a,b,c,d);
		}else if(a-b+c-d ==7) {
			System.out.printf("%d-%d+%d-%d=7",a,b,c,d);
		}else if(a-b-c+d ==7) {
			System.out.printf("%d-%d-%d+%d=7",a,b,c,d);
		}else if(a-b-c-d ==7) {
			System.out.printf("%d-%d-%d-%d=7",a,b,c,d);
		}

		sc.close();
	}
} Main public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		char[] s = sc.next().toCharArray();
		int a = s[0] - '0';
		int b = s[1] - '0';
		int c = s[2] - '0';
		int d = s[3] - '0';

		if(a+b+c+d ==7) {
			System.out.printf("%d+%d+%d+%d=7",a,b,c,d);
		}else if(a+b+c-d ==7) {
			System.out.printf("%d+%d+%d-%d=7",a,b,c,d);
		}else if(a+b-c+d ==7) {
			System.out.printf("%d+%d-%d+%d=7",a,b,c,d);
		}else if(a+b-c-d ==7) {
			System.out.printf("%d+%d-%d-%d=7",a,b,c,d);
		}else if(a-b+c+d ==7) {
			System.out.printf("%d-%d+%d+%d=7",a,b,c,d);
		}else if(a-b+c-d ==7) {
			System.out.printf("%d-%d+%d-%d=7",a,b,c,d);
		}else if(a-b-c+d ==7) {
			System.out.printf("%d-%d-%d+%d=7",a,b,c,d);
		}else if(a-b-c-d ==7) {
			System.out.printf("%d-%d-%d-%d=7",a,b,c,d);
		}

		sc.close();
	} main {

		Scanner sc = new Scanner(System.in);
		char[] s = sc.next().toCharArray();
		int a = s[0] - '0';
		int b = s[1] - '0';
		int c = s[2] - '0';
		int d = s[3] - '0';

		if(a+b+c+d ==7) {
			System.out.printf("%d+%d+%d+%d=7",a,b,c,d);
		}else if(a+b+c-d ==7) {
			System.out.printf("%d+%d+%d-%d=7",a,b,c,d);
		}else if(a+b-c+d ==7) {
			System.out.printf("%d+%d-%d+%d=7",a,b,c,d);
		}else if(a+b-c-d ==7) {
			System.out.printf("%d+%d-%d-%d=7",a,b,c,d);
		}else if(a-b+c+d ==7) {
			System.out.printf("%d-%d+%d+%d=7",a,b,c,d);
		}else if(a-b+c-d ==7) {
			System.out.printf("%d-%d+%d-%d=7",a,b,c,d);
		}else if(a-b-c+d ==7) {
			System.out.printf("%d-%d-%d+%d=7",a,b,c,d);
		}else if(a-b-c-d ==7) {
			System.out.printf("%d-%d-%d-%d=7",a,b,c,d);
		}

		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) char[] s = sc.next().toCharArray(); s sc.next().toCharArray() sc.next().toCharArray sc.next() sc.next sc int a = s[0] - '0'; a s[0] - '0' s[0] s 0 '0' int b = s[1] - '0'; b s[1] - '0' s[1] s 1 '0' int c = s[2] - '0'; c s[2] - '0' s[2] s 2 '0' int d = s[3] - '0'; d s[3] - '0' s[3] s 3 '0' if(a+b+c+d ==7) {
			System.out.printf("%d+%d+%d+%d=7",a,b,c,d);
		}else if(a+b+c-d ==7) {
			System.out.printf("%d+%d+%d-%d=7",a,b,c,d);
		}else if(a+b-c+d ==7) {
			System.out.printf("%d+%d-%d+%d=7",a,b,c,d);
		}else if(a+b-c-d ==7) {
			System.out.printf("%d+%d-%d-%d=7",a,b,c,d);
		}else if(a-b+c+d ==7) {
			System.out.printf("%d-%d+%d+%d=7",a,b,c,d);
		}else if(a-b+c-d ==7) {
			System.out.printf("%d-%d+%d-%d=7",a,b,c,d);
		}else if(a-b-c+d ==7) {
			System.out.printf("%d-%d-%d+%d=7",a,b,c,d);
		}else if(a-b-c-d ==7) {
			System.out.printf("%d-%d-%d-%d=7",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",a,b,c,d);
		} System.out.printf("%d+%d+%d+%d=7",a,b,c,d) System.out.printf System.out System System.out "%d+%d+%d+%d=7" a b c d if(a+b+c-d ==7) {
			System.out.printf("%d+%d+%d-%d=7",a,b,c,d);
		}else if(a+b-c+d ==7) {
			System.out.printf("%d+%d-%d+%d=7",a,b,c,d);
		}else if(a+b-c-d ==7) {
			System.out.printf("%d+%d-%d-%d=7",a,b,c,d);
		}else if(a-b+c+d ==7) {
			System.out.printf("%d-%d+%d+%d=7",a,b,c,d);
		}else if(a-b+c-d ==7) {
			System.out.printf("%d-%d+%d-%d=7",a,b,c,d);
		}else if(a-b-c+d ==7) {
			System.out.printf("%d-%d-%d+%d=7",a,b,c,d);
		}else if(a-b-c-d ==7) {
			System.out.printf("%d-%d-%d-%d=7",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",a,b,c,d);
		} System.out.printf("%d+%d+%d-%d=7",a,b,c,d) System.out.printf System.out System System.out "%d+%d+%d-%d=7" a b c d if(a+b-c+d ==7) {
			System.out.printf("%d+%d-%d+%d=7",a,b,c,d);
		}else if(a+b-c-d ==7) {
			System.out.printf("%d+%d-%d-%d=7",a,b,c,d);
		}else if(a-b+c+d ==7) {
			System.out.printf("%d-%d+%d+%d=7",a,b,c,d);
		}else if(a-b+c-d ==7) {
			System.out.printf("%d-%d+%d-%d=7",a,b,c,d);
		}else if(a-b-c+d ==7) {
			System.out.printf("%d-%d-%d+%d=7",a,b,c,d);
		}else if(a-b-c-d ==7) {
			System.out.printf("%d-%d-%d-%d=7",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",a,b,c,d);
		} System.out.printf("%d+%d-%d+%d=7",a,b,c,d) System.out.printf System.out System System.out "%d+%d-%d+%d=7" a b c d if(a+b-c-d ==7) {
			System.out.printf("%d+%d-%d-%d=7",a,b,c,d);
		}else if(a-b+c+d ==7) {
			System.out.printf("%d-%d+%d+%d=7",a,b,c,d);
		}else if(a-b+c-d ==7) {
			System.out.printf("%d-%d+%d-%d=7",a,b,c,d);
		}else if(a-b-c+d ==7) {
			System.out.printf("%d-%d-%d+%d=7",a,b,c,d);
		}else if(a-b-c-d ==7) {
			System.out.printf("%d-%d-%d-%d=7",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",a,b,c,d);
		} System.out.printf("%d+%d-%d-%d=7",a,b,c,d) System.out.printf System.out System System.out "%d+%d-%d-%d=7" a b c d if(a-b+c+d ==7) {
			System.out.printf("%d-%d+%d+%d=7",a,b,c,d);
		}else if(a-b+c-d ==7) {
			System.out.printf("%d-%d+%d-%d=7",a,b,c,d);
		}else if(a-b-c+d ==7) {
			System.out.printf("%d-%d-%d+%d=7",a,b,c,d);
		}else if(a-b-c-d ==7) {
			System.out.printf("%d-%d-%d-%d=7",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",a,b,c,d);
		} System.out.printf("%d-%d+%d+%d=7",a,b,c,d) System.out.printf System.out System System.out "%d-%d+%d+%d=7" a b c d if(a-b+c-d ==7) {
			System.out.printf("%d-%d+%d-%d=7",a,b,c,d);
		}else if(a-b-c+d ==7) {
			System.out.printf("%d-%d-%d+%d=7",a,b,c,d);
		}else if(a-b-c-d ==7) {
			System.out.printf("%d-%d-%d-%d=7",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",a,b,c,d);
		} System.out.printf("%d-%d+%d-%d=7",a,b,c,d) System.out.printf System.out System System.out "%d-%d+%d-%d=7" a b c d if(a-b-c+d ==7) {
			System.out.printf("%d-%d-%d+%d=7",a,b,c,d);
		}else if(a-b-c-d ==7) {
			System.out.printf("%d-%d-%d-%d=7",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",a,b,c,d);
		} System.out.printf("%d-%d-%d+%d=7",a,b,c,d) System.out.printf System.out System System.out "%d-%d-%d+%d=7" a b c d if(a-b-c-d ==7) {
			System.out.printf("%d-%d-%d-%d=7",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",a,b,c,d);
		} System.out.printf("%d-%d-%d-%d=7",a,b,c,d) System.out.printf System.out System System.out "%d-%d-%d-%d=7" a b c d sc.close() sc.close sc String[] args args public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		char[] s = sc.next().toCharArray();
		int a = s[0] - '0';
		int b = s[1] - '0';
		int c = s[2] - '0';
		int d = s[3] - '0';

		if(a+b+c+d ==7) {
			System.out.printf("%d+%d+%d+%d=7",a,b,c,d);
		}else if(a+b+c-d ==7) {
			System.out.printf("%d+%d+%d-%d=7",a,b,c,d);
		}else if(a+b-c+d ==7) {
			System.out.printf("%d+%d-%d+%d=7",a,b,c,d);
		}else if(a+b-c-d ==7) {
			System.out.printf("%d+%d-%d-%d=7",a,b,c,d);
		}else if(a-b+c+d ==7) {
			System.out.printf("%d-%d+%d+%d=7",a,b,c,d);
		}else if(a-b+c-d ==7) {
			System.out.printf("%d-%d+%d-%d=7",a,b,c,d);
		}else if(a-b-c+d ==7) {
			System.out.printf("%d-%d-%d+%d=7",a,b,c,d);
		}else if(a-b-c-d ==7) {
			System.out.printf("%d-%d-%d-%d=7",a,b,c,d);
		}

		sc.close();
	}
} public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		char[] s = sc.next().toCharArray();
		int a = s[0] - '0';
		int b = s[1] - '0';
		int c = s[2] - '0';
		int d = s[3] - '0';

		if(a+b+c+d ==7) {
			System.out.printf("%d+%d+%d+%d=7",a,b,c,d);
		}else if(a+b+c-d ==7) {
			System.out.printf("%d+%d+%d-%d=7",a,b,c,d);
		}else if(a+b-c+d ==7) {
			System.out.printf("%d+%d-%d+%d=7",a,b,c,d);
		}else if(a+b-c-d ==7) {
			System.out.printf("%d+%d-%d-%d=7",a,b,c,d);
		}else if(a-b+c+d ==7) {
			System.out.printf("%d-%d+%d+%d=7",a,b,c,d);
		}else if(a-b+c-d ==7) {
			System.out.printf("%d-%d+%d-%d=7",a,b,c,d);
		}else if(a-b-c+d ==7) {
			System.out.printf("%d-%d-%d+%d=7",a,b,c,d);
		}else if(a-b-c-d ==7) {
			System.out.printf("%d-%d-%d-%d=7",a,b,c,d);
		}

		sc.close();
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		char[] s = sc.next().toCharArray();
		int a = s[0] - '0';
		int b = s[1] - '0';
		int c = s[2] - '0';
		int d = s[3] - '0';

		if(a+b+c+d ==7) {
			System.out.printf("%d+%d+%d+%d=7",a,b,c,d);
		}else if(a+b+c-d ==7) {
			System.out.printf("%d+%d+%d-%d=7",a,b,c,d);
		}else if(a+b-c+d ==7) {
			System.out.printf("%d+%d-%d+%d=7",a,b,c,d);
		}else if(a+b-c-d ==7) {
			System.out.printf("%d+%d-%d-%d=7",a,b,c,d);
		}else if(a-b+c+d ==7) {
			System.out.printf("%d-%d+%d+%d=7",a,b,c,d);
		}else if(a-b+c-d ==7) {
			System.out.printf("%d-%d+%d-%d=7",a,b,c,d);
		}else if(a-b-c+d ==7) {
			System.out.printf("%d-%d-%d+%d=7",a,b,c,d);
		}else if(a-b-c-d ==7) {
			System.out.printf("%d-%d-%d-%d=7",a,b,c,d);
		}

		sc.close();
	}
}