
import 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 c[] = sc.next().toCharArray();

		int d1=c[0]-'0';
		int d2=c[1]-'0';
		int d3=c[2]-'0';
		int d4=c[3]-'0';


		for(int i=0; i<2; i++) {
			for(int j=0; j<2; j++) {
				for(int k=0; k<2; k++) {
					int sum = d1;
					if(i%2==0) {
						sum+=d2;
					}else {
						sum-=d2;
					}
					if(j%2==0) {
						sum+=d3;
					}else {
						sum-=d3;
					}
					if(k%2==0) {
						sum+=d4;
					}else {
						sum-=d4;
					}
					if(sum==7) {
						System.out.print(d1);
						System.out.print(i%2==0 ? '+' : '-');
						System.out.print(d2);
						System.out.print(j%2==0 ? '+' : '-');
						System.out.print(d3);
						System.out.print(k%2==0 ? '+' : '-');
						System.out.print(d4);
						System.out.println("=7");
						sc.close();
						return;
					}
				}
			}
		}
		sc.close();
	}
} import java.util.*; util.* java 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 c[] = sc.next().toCharArray();

		int d1=c[0]-'0';
		int d2=c[1]-'0';
		int d3=c[2]-'0';
		int d4=c[3]-'0';


		for(int i=0; i<2; i++) {
			for(int j=0; j<2; j++) {
				for(int k=0; k<2; k++) {
					int sum = d1;
					if(i%2==0) {
						sum+=d2;
					}else {
						sum-=d2;
					}
					if(j%2==0) {
						sum+=d3;
					}else {
						sum-=d3;
					}
					if(k%2==0) {
						sum+=d4;
					}else {
						sum-=d4;
					}
					if(sum==7) {
						System.out.print(d1);
						System.out.print(i%2==0 ? '+' : '-');
						System.out.print(d2);
						System.out.print(j%2==0 ? '+' : '-');
						System.out.print(d3);
						System.out.print(k%2==0 ? '+' : '-');
						System.out.print(d4);
						System.out.println("=7");
						sc.close();
						return;
					}
				}
			}
		}
		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 c[] = sc.next().toCharArray();

		int d1=c[0]-'0';
		int d2=c[1]-'0';
		int d3=c[2]-'0';
		int d4=c[3]-'0';


		for(int i=0; i<2; i++) {
			for(int j=0; j<2; j++) {
				for(int k=0; k<2; k++) {
					int sum = d1;
					if(i%2==0) {
						sum+=d2;
					}else {
						sum-=d2;
					}
					if(j%2==0) {
						sum+=d3;
					}else {
						sum-=d3;
					}
					if(k%2==0) {
						sum+=d4;
					}else {
						sum-=d4;
					}
					if(sum==7) {
						System.out.print(d1);
						System.out.print(i%2==0 ? '+' : '-');
						System.out.print(d2);
						System.out.print(j%2==0 ? '+' : '-');
						System.out.print(d3);
						System.out.print(k%2==0 ? '+' : '-');
						System.out.print(d4);
						System.out.println("=7");
						sc.close();
						return;
					}
				}
			}
		}
		sc.close();
	} run {
		Scanner sc = new Scanner(System.in);
		char c[] = sc.next().toCharArray();

		int d1=c[0]-'0';
		int d2=c[1]-'0';
		int d3=c[2]-'0';
		int d4=c[3]-'0';


		for(int i=0; i<2; i++) {
			for(int j=0; j<2; j++) {
				for(int k=0; k<2; k++) {
					int sum = d1;
					if(i%2==0) {
						sum+=d2;
					}else {
						sum-=d2;
					}
					if(j%2==0) {
						sum+=d3;
					}else {
						sum-=d3;
					}
					if(k%2==0) {
						sum+=d4;
					}else {
						sum-=d4;
					}
					if(sum==7) {
						System.out.print(d1);
						System.out.print(i%2==0 ? '+' : '-');
						System.out.print(d2);
						System.out.print(j%2==0 ? '+' : '-');
						System.out.print(d3);
						System.out.print(k%2==0 ? '+' : '-');
						System.out.print(d4);
						System.out.println("=7");
						sc.close();
						return;
					}
				}
			}
		}
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) char c[] = sc.next().toCharArray(); c sc.next().toCharArray() sc.next().toCharArray sc.next() sc.next sc int d1=c[0]-'0'; d1 c[0]-'0' c[0] c 0 '0' int d2=c[1]-'0'; d2 c[1]-'0' c[1] c 1 '0' int d3=c[2]-'0'; d3 c[2]-'0' c[2] c 2 '0' int d4=c[3]-'0'; d4 c[3]-'0' c[3] c 3 '0' for(int i=0; i<2; i++) {
			for(int j=0; j<2; j++) {
				for(int k=0; k<2; k++) {
					int sum = d1;
					if(i%2==0) {
						sum+=d2;
					}else {
						sum-=d2;
					}
					if(j%2==0) {
						sum+=d3;
					}else {
						sum-=d3;
					}
					if(k%2==0) {
						sum+=d4;
					}else {
						sum-=d4;
					}
					if(sum==7) {
						System.out.print(d1);
						System.out.print(i%2==0 ? '+' : '-');
						System.out.print(d2);
						System.out.print(j%2==0 ? '+' : '-');
						System.out.print(d3);
						System.out.print(k%2==0 ? '+' : '-');
						System.out.print(d4);
						System.out.println("=7");
						sc.close();
						return;
					}
				}
			}
		} int i=0; int i=0; i 0 i<2 i 2 i++ i++ i {
			for(int j=0; j<2; j++) {
				for(int k=0; k<2; k++) {
					int sum = d1;
					if(i%2==0) {
						sum+=d2;
					}else {
						sum-=d2;
					}
					if(j%2==0) {
						sum+=d3;
					}else {
						sum-=d3;
					}
					if(k%2==0) {
						sum+=d4;
					}else {
						sum-=d4;
					}
					if(sum==7) {
						System.out.print(d1);
						System.out.print(i%2==0 ? '+' : '-');
						System.out.print(d2);
						System.out.print(j%2==0 ? '+' : '-');
						System.out.print(d3);
						System.out.print(k%2==0 ? '+' : '-');
						System.out.print(d4);
						System.out.println("=7");
						sc.close();
						return;
					}
				}
			}
		} {
			for(int j=0; j<2; j++) {
				for(int k=0; k<2; k++) {
					int sum = d1;
					if(i%2==0) {
						sum+=d2;
					}else {
						sum-=d2;
					}
					if(j%2==0) {
						sum+=d3;
					}else {
						sum-=d3;
					}
					if(k%2==0) {
						sum+=d4;
					}else {
						sum-=d4;
					}
					if(sum==7) {
						System.out.print(d1);
						System.out.print(i%2==0 ? '+' : '-');
						System.out.print(d2);
						System.out.print(j%2==0 ? '+' : '-');
						System.out.print(d3);
						System.out.print(k%2==0 ? '+' : '-');
						System.out.print(d4);
						System.out.println("=7");
						sc.close();
						return;
					}
				}
			}
		} for(int j=0; j<2; j++) {
				for(int k=0; k<2; k++) {
					int sum = d1;
					if(i%2==0) {
						sum+=d2;
					}else {
						sum-=d2;
					}
					if(j%2==0) {
						sum+=d3;
					}else {
						sum-=d3;
					}
					if(k%2==0) {
						sum+=d4;
					}else {
						sum-=d4;
					}
					if(sum==7) {
						System.out.print(d1);
						System.out.print(i%2==0 ? '+' : '-');
						System.out.print(d2);
						System.out.print(j%2==0 ? '+' : '-');
						System.out.print(d3);
						System.out.print(k%2==0 ? '+' : '-');
						System.out.print(d4);
						System.out.println("=7");
						sc.close();
						return;
					}
				}
			} int j=0; int j=0; j 0 j<2 j 2 j++ j++ j {
				for(int k=0; k<2; k++) {
					int sum = d1;
					if(i%2==0) {
						sum+=d2;
					}else {
						sum-=d2;
					}
					if(j%2==0) {
						sum+=d3;
					}else {
						sum-=d3;
					}
					if(k%2==0) {
						sum+=d4;
					}else {
						sum-=d4;
					}
					if(sum==7) {
						System.out.print(d1);
						System.out.print(i%2==0 ? '+' : '-');
						System.out.print(d2);
						System.out.print(j%2==0 ? '+' : '-');
						System.out.print(d3);
						System.out.print(k%2==0 ? '+' : '-');
						System.out.print(d4);
						System.out.println("=7");
						sc.close();
						return;
					}
				}
			} {
				for(int k=0; k<2; k++) {
					int sum = d1;
					if(i%2==0) {
						sum+=d2;
					}else {
						sum-=d2;
					}
					if(j%2==0) {
						sum+=d3;
					}else {
						sum-=d3;
					}
					if(k%2==0) {
						sum+=d4;
					}else {
						sum-=d4;
					}
					if(sum==7) {
						System.out.print(d1);
						System.out.print(i%2==0 ? '+' : '-');
						System.out.print(d2);
						System.out.print(j%2==0 ? '+' : '-');
						System.out.print(d3);
						System.out.print(k%2==0 ? '+' : '-');
						System.out.print(d4);
						System.out.println("=7");
						sc.close();
						return;
					}
				}
			} for(int k=0; k<2; k++) {
					int sum = d1;
					if(i%2==0) {
						sum+=d2;
					}else {
						sum-=d2;
					}
					if(j%2==0) {
						sum+=d3;
					}else {
						sum-=d3;
					}
					if(k%2==0) {
						sum+=d4;
					}else {
						sum-=d4;
					}
					if(sum==7) {
						System.out.print(d1);
						System.out.print(i%2==0 ? '+' : '-');
						System.out.print(d2);
						System.out.print(j%2==0 ? '+' : '-');
						System.out.print(d3);
						System.out.print(k%2==0 ? '+' : '-');
						System.out.print(d4);
						System.out.println("=7");
						sc.close();
						return;
					}
				} int k=0; int k=0; k 0 k<2 k 2 k++ k++ k {
					int sum = d1;
					if(i%2==0) {
						sum+=d2;
					}else {
						sum-=d2;
					}
					if(j%2==0) {
						sum+=d3;
					}else {
						sum-=d3;
					}
					if(k%2==0) {
						sum+=d4;
					}else {
						sum-=d4;
					}
					if(sum==7) {
						System.out.print(d1);
						System.out.print(i%2==0 ? '+' : '-');
						System.out.print(d2);
						System.out.print(j%2==0 ? '+' : '-');
						System.out.print(d3);
						System.out.print(k%2==0 ? '+' : '-');
						System.out.print(d4);
						System.out.println("=7");
						sc.close();
						return;
					}
				} {
					int sum = d1;
					if(i%2==0) {
						sum+=d2;
					}else {
						sum-=d2;
					}
					if(j%2==0) {
						sum+=d3;
					}else {
						sum-=d3;
					}
					if(k%2==0) {
						sum+=d4;
					}else {
						sum-=d4;
					}
					if(sum==7) {
						System.out.print(d1);
						System.out.print(i%2==0 ? '+' : '-');
						System.out.print(d2);
						System.out.print(j%2==0 ? '+' : '-');
						System.out.print(d3);
						System.out.print(k%2==0 ? '+' : '-');
						System.out.print(d4);
						System.out.println("=7");
						sc.close();
						return;
					}
				} int sum = d1; sum d1 if(i%2==0) {
						sum+=d2;
					}else {
						sum-=d2;
					} i%2==0 i%2 i 2 0 {
						sum+=d2;
					} sum+=d2 sum d2 {
						sum-=d2;
					} sum-=d2 sum d2 if(j%2==0) {
						sum+=d3;
					}else {
						sum-=d3;
					} j%2==0 j%2 j 2 0 {
						sum+=d3;
					} sum+=d3 sum d3 {
						sum-=d3;
					} sum-=d3 sum d3 if(k%2==0) {
						sum+=d4;
					}else {
						sum-=d4;
					} k%2==0 k%2 k 2 0 {
						sum+=d4;
					} sum+=d4 sum d4 {
						sum-=d4;
					} sum-=d4 sum d4 if(sum==7) {
						System.out.print(d1);
						System.out.print(i%2==0 ? '+' : '-');
						System.out.print(d2);
						System.out.print(j%2==0 ? '+' : '-');
						System.out.print(d3);
						System.out.print(k%2==0 ? '+' : '-');
						System.out.print(d4);
						System.out.println("=7");
						sc.close();
						return;
					} sum==7 sum 7 {
						System.out.print(d1);
						System.out.print(i%2==0 ? '+' : '-');
						System.out.print(d2);
						System.out.print(j%2==0 ? '+' : '-');
						System.out.print(d3);
						System.out.print(k%2==0 ? '+' : '-');
						System.out.print(d4);
						System.out.println("=7");
						sc.close();
						return;
					} System.out.print(d1) System.out.print System.out System System.out d1 System.out.print(i%2==0 ? '+' : '-') System.out.print System.out System System.out i%2==0 ? '+' : '-' i%2==0 i%2 i 2 0 '+' '-' System.out.print(d2) System.out.print System.out System System.out d2 System.out.print(j%2==0 ? '+' : '-') System.out.print System.out System System.out j%2==0 ? '+' : '-' j%2==0 j%2 j 2 0 '+' '-' System.out.print(d3) System.out.print System.out System System.out d3 System.out.print(k%2==0 ? '+' : '-') System.out.print System.out System System.out k%2==0 ? '+' : '-' k%2==0 k%2 k 2 0 '+' '-' System.out.print(d4) System.out.print System.out System System.out d4 System.out.println("=7") System.out.println System.out System System.out "=7" sc.close() sc.close sc return; 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 c[] = sc.next().toCharArray();

		int d1=c[0]-'0';
		int d2=c[1]-'0';
		int d3=c[2]-'0';
		int d4=c[3]-'0';


		for(int i=0; i<2; i++) {
			for(int j=0; j<2; j++) {
				for(int k=0; k<2; k++) {
					int sum = d1;
					if(i%2==0) {
						sum+=d2;
					}else {
						sum-=d2;
					}
					if(j%2==0) {
						sum+=d3;
					}else {
						sum-=d3;
					}
					if(k%2==0) {
						sum+=d4;
					}else {
						sum-=d4;
					}
					if(sum==7) {
						System.out.print(d1);
						System.out.print(i%2==0 ? '+' : '-');
						System.out.print(d2);
						System.out.print(j%2==0 ? '+' : '-');
						System.out.print(d3);
						System.out.print(k%2==0 ? '+' : '-');
						System.out.print(d4);
						System.out.println("=7");
						sc.close();
						return;
					}
				}
			}
		}
		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 c[] = sc.next().toCharArray();

		int d1=c[0]-'0';
		int d2=c[1]-'0';
		int d3=c[2]-'0';
		int d4=c[3]-'0';


		for(int i=0; i<2; i++) {
			for(int j=0; j<2; j++) {
				for(int k=0; k<2; k++) {
					int sum = d1;
					if(i%2==0) {
						sum+=d2;
					}else {
						sum-=d2;
					}
					if(j%2==0) {
						sum+=d3;
					}else {
						sum-=d3;
					}
					if(k%2==0) {
						sum+=d4;
					}else {
						sum-=d4;
					}
					if(sum==7) {
						System.out.print(d1);
						System.out.print(i%2==0 ? '+' : '-');
						System.out.print(d2);
						System.out.print(j%2==0 ? '+' : '-');
						System.out.print(d3);
						System.out.print(k%2==0 ? '+' : '-');
						System.out.print(d4);
						System.out.println("=7");
						sc.close();
						return;
					}
				}
			}
		}
		sc.close();
	}
} Main

import 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 c[] = sc.next().toCharArray();

		int d1=c[0]-'0';
		int d2=c[1]-'0';
		int d3=c[2]-'0';
		int d4=c[3]-'0';


		for(int i=0; i<2; i++) {
			for(int j=0; j<2; j++) {
				for(int k=0; k<2; k++) {
					int sum = d1;
					if(i%2==0) {
						sum+=d2;
					}else {
						sum-=d2;
					}
					if(j%2==0) {
						sum+=d3;
					}else {
						sum-=d3;
					}
					if(k%2==0) {
						sum+=d4;
					}else {
						sum-=d4;
					}
					if(sum==7) {
						System.out.print(d1);
						System.out.print(i%2==0 ? '+' : '-');
						System.out.print(d2);
						System.out.print(j%2==0 ? '+' : '-');
						System.out.print(d3);
						System.out.print(k%2==0 ? '+' : '-');
						System.out.print(d4);
						System.out.println("=7");
						sc.close();
						return;
					}
				}
			}
		}
		sc.close();
	}
}
