import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    char[] D = scanner.next().toCharArray();
    int[] digits = new int[4];
    for (int i = 0; i < 4; i++) digits[i] = D[i] - '0';

    for (int i = -1; i < 2; i += 2) {
      for (int j = -1; j < 2; j += 2) {
        for (int k = -1; k < 2; k += 2) {
          int sum = digits[0] + i * digits[1] + j * digits[2] + k * digits[3];
          if (sum == 7) {
            System.out.printf("%d%c%d%c%d%c%d=7\n", digits[0], i < 0 ? '-' : '+', digits[1], j < 0 ? '-' : '+', digits[2], k < 0 ? '-' : '+', digits[3]);
            return;
          }
        }
      }
    }
  }
} import java.util.Scanner; Scanner java.util public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    char[] D = scanner.next().toCharArray();
    int[] digits = new int[4];
    for (int i = 0; i < 4; i++) digits[i] = D[i] - '0';

    for (int i = -1; i < 2; i += 2) {
      for (int j = -1; j < 2; j += 2) {
        for (int k = -1; k < 2; k += 2) {
          int sum = digits[0] + i * digits[1] + j * digits[2] + k * digits[3];
          if (sum == 7) {
            System.out.printf("%d%c%d%c%d%c%d=7\n", digits[0], i < 0 ? '-' : '+', digits[1], j < 0 ? '-' : '+', digits[2], k < 0 ? '-' : '+', digits[3]);
            return;
          }
        }
      }
    }
  }
} Main public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    char[] D = scanner.next().toCharArray();
    int[] digits = new int[4];
    for (int i = 0; i < 4; i++) digits[i] = D[i] - '0';

    for (int i = -1; i < 2; i += 2) {
      for (int j = -1; j < 2; j += 2) {
        for (int k = -1; k < 2; k += 2) {
          int sum = digits[0] + i * digits[1] + j * digits[2] + k * digits[3];
          if (sum == 7) {
            System.out.printf("%d%c%d%c%d%c%d=7\n", digits[0], i < 0 ? '-' : '+', digits[1], j < 0 ? '-' : '+', digits[2], k < 0 ? '-' : '+', digits[3]);
            return;
          }
        }
      }
    }
  } main {
    Scanner scanner = new Scanner(System.in);
    char[] D = scanner.next().toCharArray();
    int[] digits = new int[4];
    for (int i = 0; i < 4; i++) digits[i] = D[i] - '0';

    for (int i = -1; i < 2; i += 2) {
      for (int j = -1; j < 2; j += 2) {
        for (int k = -1; k < 2; k += 2) {
          int sum = digits[0] + i * digits[1] + j * digits[2] + k * digits[3];
          if (sum == 7) {
            System.out.printf("%d%c%d%c%d%c%d=7\n", digits[0], i < 0 ? '-' : '+', digits[1], j < 0 ? '-' : '+', digits[2], k < 0 ? '-' : '+', digits[3]);
            return;
          }
        }
      }
    }
  } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) char[] D = scanner.next().toCharArray(); D scanner.next().toCharArray() scanner.next().toCharArray scanner.next() scanner.next scanner int[] digits = new int[4]; digits new int[4] 4 for (int i = 0; i < 4; i++) digits[i] = D[i] - '0'; int i = 0; int i = 0; i 0 i < 4 i 4 i++ i++ i digits[i] = D[i] - '0'; digits[i] = D[i] - '0' digits[i] digits i D[i] - '0' D[i] D i '0' for (int i = -1; i < 2; i += 2) {
      for (int j = -1; j < 2; j += 2) {
        for (int k = -1; k < 2; k += 2) {
          int sum = digits[0] + i * digits[1] + j * digits[2] + k * digits[3];
          if (sum == 7) {
            System.out.printf("%d%c%d%c%d%c%d=7\n", digits[0], i < 0 ? '-' : '+', digits[1], j < 0 ? '-' : '+', digits[2], k < 0 ? '-' : '+', digits[3]);
            return;
          }
        }
      }
    } int i = -1; int i = -1; i -1 1 i < 2 i 2 i += 2 i += 2 i 2 {
      for (int j = -1; j < 2; j += 2) {
        for (int k = -1; k < 2; k += 2) {
          int sum = digits[0] + i * digits[1] + j * digits[2] + k * digits[3];
          if (sum == 7) {
            System.out.printf("%d%c%d%c%d%c%d=7\n", digits[0], i < 0 ? '-' : '+', digits[1], j < 0 ? '-' : '+', digits[2], k < 0 ? '-' : '+', digits[3]);
            return;
          }
        }
      }
    } {
      for (int j = -1; j < 2; j += 2) {
        for (int k = -1; k < 2; k += 2) {
          int sum = digits[0] + i * digits[1] + j * digits[2] + k * digits[3];
          if (sum == 7) {
            System.out.printf("%d%c%d%c%d%c%d=7\n", digits[0], i < 0 ? '-' : '+', digits[1], j < 0 ? '-' : '+', digits[2], k < 0 ? '-' : '+', digits[3]);
            return;
          }
        }
      }
    } for (int j = -1; j < 2; j += 2) {
        for (int k = -1; k < 2; k += 2) {
          int sum = digits[0] + i * digits[1] + j * digits[2] + k * digits[3];
          if (sum == 7) {
            System.out.printf("%d%c%d%c%d%c%d=7\n", digits[0], i < 0 ? '-' : '+', digits[1], j < 0 ? '-' : '+', digits[2], k < 0 ? '-' : '+', digits[3]);
            return;
          }
        }
      } int j = -1; int j = -1; j -1 1 j < 2 j 2 j += 2 j += 2 j 2 {
        for (int k = -1; k < 2; k += 2) {
          int sum = digits[0] + i * digits[1] + j * digits[2] + k * digits[3];
          if (sum == 7) {
            System.out.printf("%d%c%d%c%d%c%d=7\n", digits[0], i < 0 ? '-' : '+', digits[1], j < 0 ? '-' : '+', digits[2], k < 0 ? '-' : '+', digits[3]);
            return;
          }
        }
      } {
        for (int k = -1; k < 2; k += 2) {
          int sum = digits[0] + i * digits[1] + j * digits[2] + k * digits[3];
          if (sum == 7) {
            System.out.printf("%d%c%d%c%d%c%d=7\n", digits[0], i < 0 ? '-' : '+', digits[1], j < 0 ? '-' : '+', digits[2], k < 0 ? '-' : '+', digits[3]);
            return;
          }
        }
      } for (int k = -1; k < 2; k += 2) {
          int sum = digits[0] + i * digits[1] + j * digits[2] + k * digits[3];
          if (sum == 7) {
            System.out.printf("%d%c%d%c%d%c%d=7\n", digits[0], i < 0 ? '-' : '+', digits[1], j < 0 ? '-' : '+', digits[2], k < 0 ? '-' : '+', digits[3]);
            return;
          }
        } int k = -1; int k = -1; k -1 1 k < 2 k 2 k += 2 k += 2 k 2 {
          int sum = digits[0] + i * digits[1] + j * digits[2] + k * digits[3];
          if (sum == 7) {
            System.out.printf("%d%c%d%c%d%c%d=7\n", digits[0], i < 0 ? '-' : '+', digits[1], j < 0 ? '-' : '+', digits[2], k < 0 ? '-' : '+', digits[3]);
            return;
          }
        } {
          int sum = digits[0] + i * digits[1] + j * digits[2] + k * digits[3];
          if (sum == 7) {
            System.out.printf("%d%c%d%c%d%c%d=7\n", digits[0], i < 0 ? '-' : '+', digits[1], j < 0 ? '-' : '+', digits[2], k < 0 ? '-' : '+', digits[3]);
            return;
          }
        } int sum = digits[0] + i * digits[1] + j * digits[2] + k * digits[3]; sum digits[0] + i * digits[1] + j * digits[2] + k * digits[3] j * digits[2] digits[0] + i * digits[1] + j * digits[2] + k * digits[3] digits[0] digits 0 i * digits[1] i digits[1] digits 1 j * digits[2] j digits[2] digits 2 k * digits[3] k digits[3] digits 3 if (sum == 7) {
            System.out.printf("%d%c%d%c%d%c%d=7\n", digits[0], i < 0 ? '-' : '+', digits[1], j < 0 ? '-' : '+', digits[2], k < 0 ? '-' : '+', digits[3]);
            return;
          } sum == 7 sum 7 {
            System.out.printf("%d%c%d%c%d%c%d=7\n", digits[0], i < 0 ? '-' : '+', digits[1], j < 0 ? '-' : '+', digits[2], k < 0 ? '-' : '+', digits[3]);
            return;
          } System.out.printf("%d%c%d%c%d%c%d=7\n", digits[0], i < 0 ? '-' : '+', digits[1], j < 0 ? '-' : '+', digits[2], k < 0 ? '-' : '+', digits[3]) System.out.printf System.out System System.out "%d%c%d%c%d%c%d=7\n" digits[0] digits 0 i < 0 ? '-' : '+' i < 0 i 0 '-' '+' digits[1] digits 1 j < 0 ? '-' : '+' j < 0 j 0 '-' '+' digits[2] digits 2 k < 0 ? '-' : '+' k < 0 k 0 '-' '+' digits[3] digits 3 return; String[] args args public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    char[] D = scanner.next().toCharArray();
    int[] digits = new int[4];
    for (int i = 0; i < 4; i++) digits[i] = D[i] - '0';

    for (int i = -1; i < 2; i += 2) {
      for (int j = -1; j < 2; j += 2) {
        for (int k = -1; k < 2; k += 2) {
          int sum = digits[0] + i * digits[1] + j * digits[2] + k * digits[3];
          if (sum == 7) {
            System.out.printf("%d%c%d%c%d%c%d=7\n", digits[0], i < 0 ? '-' : '+', digits[1], j < 0 ? '-' : '+', digits[2], k < 0 ? '-' : '+', digits[3]);
            return;
          }
        }
      }
    }
  }
} public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    char[] D = scanner.next().toCharArray();
    int[] digits = new int[4];
    for (int i = 0; i < 4; i++) digits[i] = D[i] - '0';

    for (int i = -1; i < 2; i += 2) {
      for (int j = -1; j < 2; j += 2) {
        for (int k = -1; k < 2; k += 2) {
          int sum = digits[0] + i * digits[1] + j * digits[2] + k * digits[3];
          if (sum == 7) {
            System.out.printf("%d%c%d%c%d%c%d=7\n", digits[0], i < 0 ? '-' : '+', digits[1], j < 0 ? '-' : '+', digits[2], k < 0 ? '-' : '+', digits[3]);
            return;
          }
        }
      }
    }
  }
} Main
import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    char[] D = scanner.next().toCharArray();
    int[] digits = new int[4];
    for (int i = 0; i < 4; i++) digits[i] = D[i] - '0';

    for (int i = -1; i < 2; i += 2) {
      for (int j = -1; j < 2; j += 2) {
        for (int k = -1; k < 2; k += 2) {
          int sum = digits[0] + i * digits[1] + j * digits[2] + k * digits[3];
          if (sum == 7) {
            System.out.printf("%d%c%d%c%d%c%d=7\n", digits[0], i < 0 ? '-' : '+', digits[1], j < 0 ? '-' : '+', digits[2], k < 0 ? '-' : '+', digits[3]);
            return;
          }
        }
      }
    }
  }
}
