import java.util.Scanner;

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

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

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

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

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

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

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

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