import java.util.Scanner;
 
public class Main {
 
	public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int[] nums = new int[4];
    for(int i = 0; i < 4; i++){
      nums[i] = a % 10;
      a /= 10;
    }	
    int sum;
    for(int i = 0; i < 8; i++){
      sum = nums[3];
      for(int j = 0; j < 3;j++){
        if((i >> j & 1) == 1){
          sum += nums[3 - j - 1];
        }else{
          sum -= nums[3 - j - 1];
        }
      }
      if(sum == 7){
        a = i;
      }
    }
    char[] ops = new char[3];
    for(int i = 0; i < 3; i++){
      if((a >> i & 1) == 1){
        ops[i] = '+';
      }else{
        ops[i] = '-';
      }
    }
    System.out.println("" + nums[3] + ops[0] + nums[2] + ops[1] + nums[1] + ops[2] + nums[0] + "=7");
	}
} import java.util.Scanner; Scanner java.util public class Main {
 
	public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int[] nums = new int[4];
    for(int i = 0; i < 4; i++){
      nums[i] = a % 10;
      a /= 10;
    }	
    int sum;
    for(int i = 0; i < 8; i++){
      sum = nums[3];
      for(int j = 0; j < 3;j++){
        if((i >> j & 1) == 1){
          sum += nums[3 - j - 1];
        }else{
          sum -= nums[3 - j - 1];
        }
      }
      if(sum == 7){
        a = i;
      }
    }
    char[] ops = new char[3];
    for(int i = 0; i < 3; i++){
      if((a >> i & 1) == 1){
        ops[i] = '+';
      }else{
        ops[i] = '-';
      }
    }
    System.out.println("" + nums[3] + ops[0] + nums[2] + ops[1] + nums[1] + ops[2] + nums[0] + "=7");
	}
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int[] nums = new int[4];
    for(int i = 0; i < 4; i++){
      nums[i] = a % 10;
      a /= 10;
    }	
    int sum;
    for(int i = 0; i < 8; i++){
      sum = nums[3];
      for(int j = 0; j < 3;j++){
        if((i >> j & 1) == 1){
          sum += nums[3 - j - 1];
        }else{
          sum -= nums[3 - j - 1];
        }
      }
      if(sum == 7){
        a = i;
      }
    }
    char[] ops = new char[3];
    for(int i = 0; i < 3; i++){
      if((a >> i & 1) == 1){
        ops[i] = '+';
      }else{
        ops[i] = '-';
      }
    }
    System.out.println("" + nums[3] + ops[0] + nums[2] + ops[1] + nums[1] + ops[2] + nums[0] + "=7");
	} main {
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int[] nums = new int[4];
    for(int i = 0; i < 4; i++){
      nums[i] = a % 10;
      a /= 10;
    }	
    int sum;
    for(int i = 0; i < 8; i++){
      sum = nums[3];
      for(int j = 0; j < 3;j++){
        if((i >> j & 1) == 1){
          sum += nums[3 - j - 1];
        }else{
          sum -= nums[3 - j - 1];
        }
      }
      if(sum == 7){
        a = i;
      }
    }
    char[] ops = new char[3];
    for(int i = 0; i < 3; i++){
      if((a >> i & 1) == 1){
        ops[i] = '+';
      }else{
        ops[i] = '-';
      }
    }
    System.out.println("" + nums[3] + ops[0] + nums[2] + ops[1] + nums[1] + ops[2] + nums[0] + "=7");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int[] nums = new int[4]; nums new int[4] 4 for(int i = 0; i < 4; i++){
      nums[i] = a % 10;
      a /= 10;
    } int i = 0; int i = 0; i 0 i < 4 i 4 i++ i++ i {
      nums[i] = a % 10;
      a /= 10;
    } {
      nums[i] = a % 10;
      a /= 10;
    } nums[i] = a % 10 nums[i] nums i a % 10 a 10 a /= 10 a 10 int sum; sum for(int i = 0; i < 8; i++){
      sum = nums[3];
      for(int j = 0; j < 3;j++){
        if((i >> j & 1) == 1){
          sum += nums[3 - j - 1];
        }else{
          sum -= nums[3 - j - 1];
        }
      }
      if(sum == 7){
        a = i;
      }
    } int i = 0; int i = 0; i 0 i < 8 i 8 i++ i++ i {
      sum = nums[3];
      for(int j = 0; j < 3;j++){
        if((i >> j & 1) == 1){
          sum += nums[3 - j - 1];
        }else{
          sum -= nums[3 - j - 1];
        }
      }
      if(sum == 7){
        a = i;
      }
    } {
      sum = nums[3];
      for(int j = 0; j < 3;j++){
        if((i >> j & 1) == 1){
          sum += nums[3 - j - 1];
        }else{
          sum -= nums[3 - j - 1];
        }
      }
      if(sum == 7){
        a = i;
      }
    } sum = nums[3] sum nums[3] nums 3 for(int j = 0; j < 3;j++){
        if((i >> j & 1) == 1){
          sum += nums[3 - j - 1];
        }else{
          sum -= nums[3 - j - 1];
        }
      } int j = 0; int j = 0; j 0 j < 3 j 3 j++ j++ j {
        if((i >> j & 1) == 1){
          sum += nums[3 - j - 1];
        }else{
          sum -= nums[3 - j - 1];
        }
      } {
        if((i >> j & 1) == 1){
          sum += nums[3 - j - 1];
        }else{
          sum -= nums[3 - j - 1];
        }
      } if((i >> j & 1) == 1){
          sum += nums[3 - j - 1];
        }else{
          sum -= nums[3 - j - 1];
        } (i >> j & 1) == 1 (i >> j & 1) i >> j i j 1 1 {
          sum += nums[3 - j - 1];
        } sum += nums[3 - j - 1] sum nums[3 - j - 1] nums 3 - j - 1 3 - j - 1 3 j 1 {
          sum -= nums[3 - j - 1];
        } sum -= nums[3 - j - 1] sum nums[3 - j - 1] nums 3 - j - 1 3 - j - 1 3 j 1 if(sum == 7){
        a = i;
      } sum == 7 sum 7 {
        a = i;
      } a = i a i char[] ops = new char[3]; ops new char[3] 3 for(int i = 0; i < 3; i++){
      if((a >> i & 1) == 1){
        ops[i] = '+';
      }else{
        ops[i] = '-';
      }
    } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
      if((a >> i & 1) == 1){
        ops[i] = '+';
      }else{
        ops[i] = '-';
      }
    } {
      if((a >> i & 1) == 1){
        ops[i] = '+';
      }else{
        ops[i] = '-';
      }
    } if((a >> i & 1) == 1){
        ops[i] = '+';
      }else{
        ops[i] = '-';
      } (a >> i & 1) == 1 (a >> i & 1) a >> i a i 1 1 {
        ops[i] = '+';
      } ops[i] = '+' ops[i] ops i '+' {
        ops[i] = '-';
      } ops[i] = '-' ops[i] ops i '-' System.out.println("" + nums[3] + ops[0] + nums[2] + ops[1] + nums[1] + ops[2] + nums[0] + "=7") System.out.println System.out System System.out "" + nums[3] + ops[0] + nums[2] + ops[1] + nums[1] + ops[2] + nums[0] + "=7" nums[0] ops[2] nums[1] ops[1] nums[2] ops[0] "" + nums[3] + ops[0] + nums[2] + ops[1] + nums[1] + ops[2] + nums[0] + "=7" "" nums[3] nums 3 ops[0] ops 0 nums[2] nums 2 ops[1] ops 1 nums[1] nums 1 ops[2] ops 2 nums[0] nums 0 "=7" String[] args args public class Main {
 
	public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int[] nums = new int[4];
    for(int i = 0; i < 4; i++){
      nums[i] = a % 10;
      a /= 10;
    }	
    int sum;
    for(int i = 0; i < 8; i++){
      sum = nums[3];
      for(int j = 0; j < 3;j++){
        if((i >> j & 1) == 1){
          sum += nums[3 - j - 1];
        }else{
          sum -= nums[3 - j - 1];
        }
      }
      if(sum == 7){
        a = i;
      }
    }
    char[] ops = new char[3];
    for(int i = 0; i < 3; i++){
      if((a >> i & 1) == 1){
        ops[i] = '+';
      }else{
        ops[i] = '-';
      }
    }
    System.out.println("" + nums[3] + ops[0] + nums[2] + ops[1] + nums[1] + ops[2] + nums[0] + "=7");
	}
} public class Main {
 
	public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int[] nums = new int[4];
    for(int i = 0; i < 4; i++){
      nums[i] = a % 10;
      a /= 10;
    }	
    int sum;
    for(int i = 0; i < 8; i++){
      sum = nums[3];
      for(int j = 0; j < 3;j++){
        if((i >> j & 1) == 1){
          sum += nums[3 - j - 1];
        }else{
          sum -= nums[3 - j - 1];
        }
      }
      if(sum == 7){
        a = i;
      }
    }
    char[] ops = new char[3];
    for(int i = 0; i < 3; i++){
      if((a >> i & 1) == 1){
        ops[i] = '+';
      }else{
        ops[i] = '-';
      }
    }
    System.out.println("" + nums[3] + ops[0] + nums[2] + ops[1] + nums[1] + ops[2] + nums[0] + "=7");
	}
} Main
import java.util.Scanner;
 
public class Main {
 
	public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int[] nums = new int[4];
    for(int i = 0; i < 4; i++){
      nums[i] = a % 10;
      a /= 10;
    }	
    int sum;
    for(int i = 0; i < 8; i++){
      sum = nums[3];
      for(int j = 0; j < 3;j++){
        if((i >> j & 1) == 1){
          sum += nums[3 - j - 1];
        }else{
          sum -= nums[3 - j - 1];
        }
      }
      if(sum == 7){
        a = i;
      }
    }
    char[] ops = new char[3];
    for(int i = 0; i < 3; i++){
      if((a >> i & 1) == 1){
        ops[i] = '+';
      }else{
        ops[i] = '-';
      }
    }
    System.out.println("" + nums[3] + ops[0] + nums[2] + ops[1] + nums[1] + ops[2] + nums[0] + "=7");
	}
}