import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);

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

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

    int n = scanner.nextInt();
    int[] d = new int[4];
    int i = 0;
    while (n > 0) {
      d[i] = n % 10;
      i++;
      n /= 10;
    }
    for (int j = -1; j < 2; j += 2) {
      for (int k = -1; k < 2; k += 2) {
        for (int l = -1; l < 2; l += 2) {
          if (d[3] + d[2] * j + d[1] * k + d[0] * l == 7) {
            System.out.printf("%d%c%d%c%d%c%d=7\n", d[3], j < 0 ? '-' : '+', d[2],
                k < 0 ? '-' : '+', d[1], l < 0 ? '-' : '+', d[0]);
            return;
          }
        }
      }
    }
  } main {
    Scanner scanner = new Scanner(System.in);

    int n = scanner.nextInt();
    int[] d = new int[4];
    int i = 0;
    while (n > 0) {
      d[i] = n % 10;
      i++;
      n /= 10;
    }
    for (int j = -1; j < 2; j += 2) {
      for (int k = -1; k < 2; k += 2) {
        for (int l = -1; l < 2; l += 2) {
          if (d[3] + d[2] * j + d[1] * k + d[0] * l == 7) {
            System.out.printf("%d%c%d%c%d%c%d=7\n", d[3], j < 0 ? '-' : '+', d[2],
                k < 0 ? '-' : '+', d[1], l < 0 ? '-' : '+', d[0]);
            return;
          }
        }
      }
    }
  } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner int[] d = new int[4]; d new int[4] 4 int i = 0; i 0 while (n > 0) {
      d[i] = n % 10;
      i++;
      n /= 10;
    } n > 0 n 0 {
      d[i] = n % 10;
      i++;
      n /= 10;
    } d[i] = n % 10 d[i] d i n % 10 n 10 i++ i n /= 10 n 10 for (int j = -1; j < 2; j += 2) {
      for (int k = -1; k < 2; k += 2) {
        for (int l = -1; l < 2; l += 2) {
          if (d[3] + d[2] * j + d[1] * k + d[0] * l == 7) {
            System.out.printf("%d%c%d%c%d%c%d=7\n", d[3], j < 0 ? '-' : '+', d[2],
                k < 0 ? '-' : '+', d[1], l < 0 ? '-' : '+', d[0]);
            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) {
        for (int l = -1; l < 2; l += 2) {
          if (d[3] + d[2] * j + d[1] * k + d[0] * l == 7) {
            System.out.printf("%d%c%d%c%d%c%d=7\n", d[3], j < 0 ? '-' : '+', d[2],
                k < 0 ? '-' : '+', d[1], l < 0 ? '-' : '+', d[0]);
            return;
          }
        }
      }
    } {
      for (int k = -1; k < 2; k += 2) {
        for (int l = -1; l < 2; l += 2) {
          if (d[3] + d[2] * j + d[1] * k + d[0] * l == 7) {
            System.out.printf("%d%c%d%c%d%c%d=7\n", d[3], j < 0 ? '-' : '+', d[2],
                k < 0 ? '-' : '+', d[1], l < 0 ? '-' : '+', d[0]);
            return;
          }
        }
      }
    } for (int k = -1; k < 2; k += 2) {
        for (int l = -1; l < 2; l += 2) {
          if (d[3] + d[2] * j + d[1] * k + d[0] * l == 7) {
            System.out.printf("%d%c%d%c%d%c%d=7\n", d[3], j < 0 ? '-' : '+', d[2],
                k < 0 ? '-' : '+', d[1], l < 0 ? '-' : '+', d[0]);
            return;
          }
        }
      } int k = -1; int k = -1; k -1 1 k < 2 k 2 k += 2 k += 2 k 2 {
        for (int l = -1; l < 2; l += 2) {
          if (d[3] + d[2] * j + d[1] * k + d[0] * l == 7) {
            System.out.printf("%d%c%d%c%d%c%d=7\n", d[3], j < 0 ? '-' : '+', d[2],
                k < 0 ? '-' : '+', d[1], l < 0 ? '-' : '+', d[0]);
            return;
          }
        }
      } {
        for (int l = -1; l < 2; l += 2) {
          if (d[3] + d[2] * j + d[1] * k + d[0] * l == 7) {
            System.out.printf("%d%c%d%c%d%c%d=7\n", d[3], j < 0 ? '-' : '+', d[2],
                k < 0 ? '-' : '+', d[1], l < 0 ? '-' : '+', d[0]);
            return;
          }
        }
      } for (int l = -1; l < 2; l += 2) {
          if (d[3] + d[2] * j + d[1] * k + d[0] * l == 7) {
            System.out.printf("%d%c%d%c%d%c%d=7\n", d[3], j < 0 ? '-' : '+', d[2],
                k < 0 ? '-' : '+', d[1], l < 0 ? '-' : '+', d[0]);
            return;
          }
        } int l = -1; int l = -1; l -1 1 l < 2 l 2 l += 2 l += 2 l 2 {
          if (d[3] + d[2] * j + d[1] * k + d[0] * l == 7) {
            System.out.printf("%d%c%d%c%d%c%d=7\n", d[3], j < 0 ? '-' : '+', d[2],
                k < 0 ? '-' : '+', d[1], l < 0 ? '-' : '+', d[0]);
            return;
          }
        } {
          if (d[3] + d[2] * j + d[1] * k + d[0] * l == 7) {
            System.out.printf("%d%c%d%c%d%c%d=7\n", d[3], j < 0 ? '-' : '+', d[2],
                k < 0 ? '-' : '+', d[1], l < 0 ? '-' : '+', d[0]);
            return;
          }
        } if (d[3] + d[2] * j + d[1] * k + d[0] * l == 7) {
            System.out.printf("%d%c%d%c%d%c%d=7\n", d[3], j < 0 ? '-' : '+', d[2],
                k < 0 ? '-' : '+', d[1], l < 0 ? '-' : '+', d[0]);
            return;
          } d[3] + d[2] * j + d[1] * k + d[0] * l == 7 d[3] + d[2] * j + d[1] * k + d[0] * l d[1] * k d[3] + d[2] * j + d[1] * k + d[0] * l d[3] d 3 d[2] * j d[2] d 2 j d[1] * k d[1] d 1 k d[0] * l d[0] d 0 l 7 {
            System.out.printf("%d%c%d%c%d%c%d=7\n", d[3], j < 0 ? '-' : '+', d[2],
                k < 0 ? '-' : '+', d[1], l < 0 ? '-' : '+', d[0]);
            return;
          } System.out.printf("%d%c%d%c%d%c%d=7\n", d[3], j < 0 ? '-' : '+', d[2],
                k < 0 ? '-' : '+', d[1], l < 0 ? '-' : '+', d[0]) System.out.printf System.out System System.out "%d%c%d%c%d%c%d=7\n" d[3] d 3 j < 0 ? '-' : '+' j < 0 j 0 '-' '+' d[2] d 2 k < 0 ? '-' : '+' k < 0 k 0 '-' '+' d[1] d 1 l < 0 ? '-' : '+' l < 0 l 0 '-' '+' d[0] d 0 return; String[] args args public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);

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

    int n = scanner.nextInt();
    int[] d = new int[4];
    int i = 0;
    while (n > 0) {
      d[i] = n % 10;
      i++;
      n /= 10;
    }
    for (int j = -1; j < 2; j += 2) {
      for (int k = -1; k < 2; k += 2) {
        for (int l = -1; l < 2; l += 2) {
          if (d[3] + d[2] * j + d[1] * k + d[0] * l == 7) {
            System.out.printf("%d%c%d%c%d%c%d=7\n", d[3], j < 0 ? '-' : '+', d[2],
                k < 0 ? '-' : '+', d[1], l < 0 ? '-' : '+', d[0]);
            return;
          }
        }
      }
    }
  }
} Main
import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);

    int n = scanner.nextInt();
    int[] d = new int[4];
    int i = 0;
    while (n > 0) {
      d[i] = n % 10;
      i++;
      n /= 10;
    }
    for (int j = -1; j < 2; j += 2) {
      for (int k = -1; k < 2; k += 2) {
        for (int l = -1; l < 2; l += 2) {
          if (d[3] + d[2] * j + d[1] * k + d[0] * l == 7) {
            System.out.printf("%d%c%d%c%d%c%d=7\n", d[3], j < 0 ? '-' : '+', d[2],
                k < 0 ? '-' : '+', d[1], l < 0 ? '-' : '+', d[0]);
            return;
          }
        }
      }
    }
  }
}
