import java.util.Scanner;

public class Main {

	static int a[] = new int[4];

	public static int seven(int s) {
		int ans = a[0], e = s;
		if(s >= 8)return -1;
		for (int i = 0; i < 3; ++i) {
			int tmp = 1 & e;
			if (tmp == 1)
				ans += a[i + 1];
			else
				ans -= a[i + 1];
			e = e >> 1;
		}
		if (ans == 7)
			return s;
		else
			return (seven(++s));
	}

	public static String make(int s) {
		String ans = Integer.toString(a[0]);
		int e = s;
		for (int i = 0; i < 3; ++i) {
			if ((e & 1) == 1)
				ans += "+";
			else
				ans += "-";
			e = e >> 1;
			ans += Integer.toString(a[i + 1]);
		}

		ans += "=7";
		return ans;
	}

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String in = sc.next();
		sc.close();
		for (int i = 0; i < 4; ++i) {
			a[i] = Integer.parseInt(in.substring(i,  i + 1));
		}
		int s = seven(0);
		System.out.println(make(s));

	}

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

	static int a[] = new int[4];

	public static int seven(int s) {
		int ans = a[0], e = s;
		if(s >= 8)return -1;
		for (int i = 0; i < 3; ++i) {
			int tmp = 1 & e;
			if (tmp == 1)
				ans += a[i + 1];
			else
				ans -= a[i + 1];
			e = e >> 1;
		}
		if (ans == 7)
			return s;
		else
			return (seven(++s));
	}

	public static String make(int s) {
		String ans = Integer.toString(a[0]);
		int e = s;
		for (int i = 0; i < 3; ++i) {
			if ((e & 1) == 1)
				ans += "+";
			else
				ans += "-";
			e = e >> 1;
			ans += Integer.toString(a[i + 1]);
		}

		ans += "=7";
		return ans;
	}

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String in = sc.next();
		sc.close();
		for (int i = 0; i < 4; ++i) {
			a[i] = Integer.parseInt(in.substring(i,  i + 1));
		}
		int s = seven(0);
		System.out.println(make(s));

	}

} Main static int a[] = new int[4]; a new int[4] 4 public static int seven(int s) {
		int ans = a[0], e = s;
		if(s >= 8)return -1;
		for (int i = 0; i < 3; ++i) {
			int tmp = 1 & e;
			if (tmp == 1)
				ans += a[i + 1];
			else
				ans -= a[i + 1];
			e = e >> 1;
		}
		if (ans == 7)
			return s;
		else
			return (seven(++s));
	} seven {
		int ans = a[0], e = s;
		if(s >= 8)return -1;
		for (int i = 0; i < 3; ++i) {
			int tmp = 1 & e;
			if (tmp == 1)
				ans += a[i + 1];
			else
				ans -= a[i + 1];
			e = e >> 1;
		}
		if (ans == 7)
			return s;
		else
			return (seven(++s));
	} int ans = a[0] ans a[0] a 0 e = s; e s if(s >= 8)return -1; s >= 8 s 8 return -1; -1 1 for (int i = 0; i < 3; ++i) {
			int tmp = 1 & e;
			if (tmp == 1)
				ans += a[i + 1];
			else
				ans -= a[i + 1];
			e = e >> 1;
		} int i = 0; int i = 0; i 0 i < 3 i 3 ++i ++i i {
			int tmp = 1 & e;
			if (tmp == 1)
				ans += a[i + 1];
			else
				ans -= a[i + 1];
			e = e >> 1;
		} {
			int tmp = 1 & e;
			if (tmp == 1)
				ans += a[i + 1];
			else
				ans -= a[i + 1];
			e = e >> 1;
		} int tmp = 1 & e; tmp 1 & e 1 e if (tmp == 1)
				ans += a[i + 1];
			else
				ans -= a[i + 1]; tmp == 1 tmp 1 ans += a[i + 1] ans a[i + 1] a i + 1 i 1 ans -= a[i + 1] ans a[i + 1] a i + 1 i 1 e = e >> 1 e e >> 1 e 1 if (ans == 7)
			return s;
		else
			return (seven(++s)); ans == 7 ans 7 return s; s return (seven(++s)); (seven(++s)) seven ++s s int s s public static String make(int s) {
		String ans = Integer.toString(a[0]);
		int e = s;
		for (int i = 0; i < 3; ++i) {
			if ((e & 1) == 1)
				ans += "+";
			else
				ans += "-";
			e = e >> 1;
			ans += Integer.toString(a[i + 1]);
		}

		ans += "=7";
		return ans;
	} make {
		String ans = Integer.toString(a[0]);
		int e = s;
		for (int i = 0; i < 3; ++i) {
			if ((e & 1) == 1)
				ans += "+";
			else
				ans += "-";
			e = e >> 1;
			ans += Integer.toString(a[i + 1]);
		}

		ans += "=7";
		return ans;
	} String ans = Integer.toString(a[0]); ans Integer.toString(a[0]) Integer.toString Integer a[0] a 0 int e = s; e s for (int i = 0; i < 3; ++i) {
			if ((e & 1) == 1)
				ans += "+";
			else
				ans += "-";
			e = e >> 1;
			ans += Integer.toString(a[i + 1]);
		} int i = 0; int i = 0; i 0 i < 3 i 3 ++i ++i i {
			if ((e & 1) == 1)
				ans += "+";
			else
				ans += "-";
			e = e >> 1;
			ans += Integer.toString(a[i + 1]);
		} {
			if ((e & 1) == 1)
				ans += "+";
			else
				ans += "-";
			e = e >> 1;
			ans += Integer.toString(a[i + 1]);
		} if ((e & 1) == 1)
				ans += "+";
			else
				ans += "-"; (e & 1) == 1 (e & 1) e 1 1 ans += "+" ans "+" ans += "-" ans "-" e = e >> 1 e e >> 1 e 1 ans += Integer.toString(a[i + 1]) ans Integer.toString(a[i + 1]) Integer.toString Integer a[i + 1] a i + 1 i 1 ans += "=7" ans "=7" return ans; ans int s s public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String in = sc.next();
		sc.close();
		for (int i = 0; i < 4; ++i) {
			a[i] = Integer.parseInt(in.substring(i,  i + 1));
		}
		int s = seven(0);
		System.out.println(make(s));

	} main {
		Scanner sc = new Scanner(System.in);
		String in = sc.next();
		sc.close();
		for (int i = 0; i < 4; ++i) {
			a[i] = Integer.parseInt(in.substring(i,  i + 1));
		}
		int s = seven(0);
		System.out.println(make(s));

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String in = sc.next(); in sc.next() sc.next sc sc.close() sc.close sc for (int i = 0; i < 4; ++i) {
			a[i] = Integer.parseInt(in.substring(i,  i + 1));
		} int i = 0; int i = 0; i 0 i < 4 i 4 ++i ++i i {
			a[i] = Integer.parseInt(in.substring(i,  i + 1));
		} {
			a[i] = Integer.parseInt(in.substring(i,  i + 1));
		} a[i] = Integer.parseInt(in.substring(i,  i + 1)) a[i] a i Integer.parseInt(in.substring(i,  i + 1)) Integer.parseInt Integer in.substring(i,  i + 1) in.substring in i i + 1 i 1 int s = seven(0); s seven(0) seven 0 System.out.println(make(s)) System.out.println System.out System System.out make(s) make s String[] args args public class Main {

	static int a[] = new int[4];

	public static int seven(int s) {
		int ans = a[0], e = s;
		if(s >= 8)return -1;
		for (int i = 0; i < 3; ++i) {
			int tmp = 1 & e;
			if (tmp == 1)
				ans += a[i + 1];
			else
				ans -= a[i + 1];
			e = e >> 1;
		}
		if (ans == 7)
			return s;
		else
			return (seven(++s));
	}

	public static String make(int s) {
		String ans = Integer.toString(a[0]);
		int e = s;
		for (int i = 0; i < 3; ++i) {
			if ((e & 1) == 1)
				ans += "+";
			else
				ans += "-";
			e = e >> 1;
			ans += Integer.toString(a[i + 1]);
		}

		ans += "=7";
		return ans;
	}

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String in = sc.next();
		sc.close();
		for (int i = 0; i < 4; ++i) {
			a[i] = Integer.parseInt(in.substring(i,  i + 1));
		}
		int s = seven(0);
		System.out.println(make(s));

	}

} public class Main {

	static int a[] = new int[4];

	public static int seven(int s) {
		int ans = a[0], e = s;
		if(s >= 8)return -1;
		for (int i = 0; i < 3; ++i) {
			int tmp = 1 & e;
			if (tmp == 1)
				ans += a[i + 1];
			else
				ans -= a[i + 1];
			e = e >> 1;
		}
		if (ans == 7)
			return s;
		else
			return (seven(++s));
	}

	public static String make(int s) {
		String ans = Integer.toString(a[0]);
		int e = s;
		for (int i = 0; i < 3; ++i) {
			if ((e & 1) == 1)
				ans += "+";
			else
				ans += "-";
			e = e >> 1;
			ans += Integer.toString(a[i + 1]);
		}

		ans += "=7";
		return ans;
	}

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String in = sc.next();
		sc.close();
		for (int i = 0; i < 4; ++i) {
			a[i] = Integer.parseInt(in.substring(i,  i + 1));
		}
		int s = seven(0);
		System.out.println(make(s));

	}

} Main
import java.util.Scanner;

public class Main {

	static int a[] = new int[4];

	public static int seven(int s) {
		int ans = a[0], e = s;
		if(s >= 8)return -1;
		for (int i = 0; i < 3; ++i) {
			int tmp = 1 & e;
			if (tmp == 1)
				ans += a[i + 1];
			else
				ans -= a[i + 1];
			e = e >> 1;
		}
		if (ans == 7)
			return s;
		else
			return (seven(++s));
	}

	public static String make(int s) {
		String ans = Integer.toString(a[0]);
		int e = s;
		for (int i = 0; i < 3; ++i) {
			if ((e & 1) == 1)
				ans += "+";
			else
				ans += "-";
			e = e >> 1;
			ans += Integer.toString(a[i + 1]);
		}

		ans += "=7";
		return ans;
	}

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String in = sc.next();
		sc.close();
		for (int i = 0; i < 4; ++i) {
			a[i] = Integer.parseInt(in.substring(i,  i + 1));
		}
		int s = seven(0);
		System.out.println(make(s));

	}

}
