#include <bits/stdc++.h>
using namespace std;
 bool p(int a,int b,int c,int d){
            if      (a + b + c + d == 10) {printf("%d + %d + %d + %d\n",a,b,c,d);return 1;}
            else if (a + b + c - d == 10) {printf("%d + %d + %d - %d\n",a,b,c,d);return 1;}
            else if (a + b - c + d == 10) {printf("%d + %d - %d + %d\n",a,b,c,d);return 1;}
            else if (a + b - c - d == 10) {printf("%d + %d - %d - %d\n",a,b,c,d);return 1;}
            else if (a - b + c - d == 10) {printf("%d - %d + %d - %d\n",a,b,c,d);return 1;}
            else if (a - b - c + d == 10) {printf("%d - %d - %d + %d\n",a,b,c,d);return 1;}
            else if (a - b - c - d == 10) {printf("%d - %d - %d - %d\n",a,b,c,d);return 1;}
            else if (a + b + c * d == 10) {printf("%d + %d + %d * %d\n",a,b,c,d);return 1;}
            else if (a + b - c * d == 10) {printf("%d + %d - %d * %d\n",a,b,c,d);return 1;}
            else if (a - b + c * d == 10) {printf("%d - %d + %d * %d\n",a,b,c,d);return 1;}
            else if (a - b - c * d == 10) {printf("%d - %d - %d * %d\n",a,b,c,d);return 1;}
            else if (a + b * c + d == 10) {printf("%d + %d * %d + %d\n",a,b,c,d);return 1;}
            else if (a + b * c - d == 10) {printf("%d + %d * %d - %d\n",a,b,c,d);return 1;}
            else if (a - b * c + d == 10) {printf("%d - %d * %d + %d\n",a,b,c,d);return 1;}
            else if (a - b * c - d == 10) {printf("%d - %d * %d - %d\n",a,b,c,d);return 1;}
            else if (a * b + c + d == 10) {printf("%d * %d + %d + %d\n",a,b,c,d);return 1;}
            else if (a * b - c + d == 10) {printf("%d * %d - %d + %d\n",a,b,c,d);return 1;}
            else if (a * b + c - d == 10) {printf("%d * %d + %d - %d\n",a,b,c,d);return 1;}
            else if (a * b - c - d == 10) {printf("%d * %d - %d - %d\n",a,b,c,d);return 1;}
            else if (a + b * c * d == 10) {printf("%d + %d * %d * %d\n",a,b,c,d);return 1;}
            else if (a - b * c * d == 10) {printf("%d - %d * %d * %d\n",a,b,c,d);return 1;}
            else if (a * b + c * d == 10) {printf("%d * %d + %d * %d\n",a,b,c,d);return 1;}
            else if (a * b - c * d == 10) {printf("%d * %d - %d * %d\n",a,b,c,d);return 1;}
            else if (a * b * c + d == 10) {printf("%d * %d * %d + %d\n",a,b,c,d);return 1;}
            else if (a * b * c - d == 10) {printf("%d * %d * %d - %d\n",a,b,c,d);return 1;}
            else if (a * b * c * d == 10) {printf("%d * %d * %d * %d\n",a,b,c,d);return 1;}
            else if ((a + b) * c + d == 10) {printf("(%d + %d) * %d + %d\n",a,b,c,d);return 1;}
            else if ((a + b) * c - d == 10) {printf("(%d + %d) * %d - %d\n",a,b,c,d);return 1;}
            else if ((a - b) * c + d == 10) {printf("(%d - %d) * %d + %d\n",a,b,c,d);return 1;}
            else if ((a - b) * c - d == 10) {printf("(%d - %d) * %d - %d\n",a,b,c,d);return 1;}
            else if ((a + b) * c * d == 10) {printf("(%d + %d) * %d * %d\n",a,b,c,d);return 1;}
            else if ((a - b) * c * d == 10) {printf("(%d - %d) * %d * %d\n",a,b,c,d);return 1;}
            else if (a * (b + c) + d == 10) {printf("%d * (%d + %d) + %d\n",a,b,c,d);return 1;}
            else if (a * (b - c) + d == 10) {printf("%d * (%d - %d) + %d\n",a,b,c,d);return 1;}
            else if (a * (b + c) - d == 10) {printf("%d * (%d + %d) - %d\n",a,b,c,d);return 1;}
            else if (a * (b - c) - d == 10) {printf("%d * (%d - %d) - %d\n",a,b,c,d);return 1;}
            else if (a * (b + c) * d == 10) {printf("%d * (%d + %d) * %d\n",a,b,c,d);return 1;}
            else if (a * (b - c) * d == 10) {printf("%d * (%d - %d) * %d\n",a,b,c,d);return 1;}
            else if (a + b * (c + d) == 10) {printf("%d + %d * (%d + %d)\n",a,b,c,d);return 1;}
            else if (a + b * (c - d) == 10) {printf("%d + %d * (%d - %d)\n",a,b,c,d);return 1;}
            else if (a - b * (c + d) == 10) {printf("%d - %d * (%d + %d)\n",a,b,c,d);return 1;}
            else if (a - b * (c - d) == 10) {printf("%d - %d * (%d - %d)\n",a,b,c,d);return 1;}
            else if (a * b - (c + d) == 10) {printf("%d * %d - (%d + %d)\n",a,b,c,d);return 1;}
            else if (a * b + (c - d) == 10) {printf("%d * %d + (%d - %d)\n",a,b,c,d);return 1;}
            else if (a * b * (c + d) == 10) {printf("%d * %d * (%d + %d)\n",a,b,c,d);return 1;}
            else if (a * b * (c - d) == 10) {printf("%d * %d * (%d - %d)\n",a,b,c,d);return 1;}
            else if ((a + b) * (c + d) == 10) {printf("(%d + %d) * (%d + %d)\n",a,b,c,d);return 1;}
            else if ((a + b) * (c - d) == 10) {printf("(%d + %d) * (%d - %d)\n",a,b,c,d);return 1;}
            else if ((a - b) * (c + d) == 10) {printf("(%d - %d) * (%d + %d)\n",a,b,c,d);return 1;}
            else if ((a - b) * (c - d) == 10) {printf("(%d - %d) * (%d - %d)\n",a,b,c,d);return 1;}
            else if ((a + b) * (c * d) == 10) {printf("(%d + %d) * (%d * %d)\n",a,b,c,d);return 1;}
            else if ((a - b) * (c * d) == 10) {printf("(%d - %d) * (%d * %d)\n",a,b,c,d);return 1;}
            else if (((a + b) + c) * d == 10) {printf("((%d + %d) + %d) * %d\n",a,b,c,d);return 1;}
            else if (((a + b) - c) * d == 10) {printf("((%d + %d) - %d) * %d\n",a,b,c,d);return 1;}
            else if (((a - b) + c) * d == 10) {printf("((%d - %d) + %d) * %d\n",a,b,c,d);return 1;}
            else if (((a - b) - c) * d == 10) {printf("((%d - %d) - %d) * %d\n",a,b,c,d);return 1;}
            else if (((a * b) + c) * d == 10) {printf("((%d * %d) + %d) * %d\n",a,b,c,d);return 1;}
            else if (((a * b) - c) * d == 10) {printf("((%d * %d) - %d) * %d\n",a,b,c,d);return 1;}
            else if ((a + (b * c)) + d == 10) {printf("(%d + (%d * %d)) + %d\n",a,b,c,d);return 1;}
            else if ((a + (b * c)) - d == 10) {printf("(%d + (%d * %d)) - %d\n",a,b,c,d);return 1;}
            else if ((a - (b * c)) + d == 10) {printf("(%d - (%d * %d)) + %d\n",a,b,c,d);return 1;}
            else if ((a - (b * c)) - d == 10) {printf("(%d - (%d * %d)) - %d\n",a,b,c,d);return 1;}
            else if ((a + (b * c)) * d == 10) {printf("(%d + (%d * %d)) * %d\n",a,b,c,d);return 1;}
            else if ((a - (b * c)) * d == 10) {printf("(%d - (%d * %d)) * %d\n",a,b,c,d);return 1;}
            else if (a + ((b * c) + d) == 10) {printf("%d + ((%d * %d) + %d)\n",a,b,c,d);return 1;}
            else if (a + ((b * c) - d) == 10) {printf("%d + ((%d * %d) - %d)\n",a,b,c,d);return 1;}
            else if (a - ((b * c) + d) == 10) {printf("%d - ((%d * %d) + %d)\n",a,b,c,d);return 1;}
            else if (a - ((b * c) - d) == 10) {printf("%d - ((%d * %d) - %d)\n",a,b,c,d);return 1;}
            else if (a * ((b + c) + d) == 10) {printf("%d * ((%d + %d) + %d)\n",a,b,c,d);return 1;}
            else if (a * ((b - c) + d) == 10) {printf("%d * ((%d - %d) + %d)\n",a,b,c,d);return 1;}
            else if (a * ((b + c) - d) == 10) {printf("%d * ((%d + %d) - %d)\n",a,b,c,d);return 1;}
            else if (a * ((b - c) - d) == 10) {printf("%d * ((%d - %d) - %d)\n",a,b,c,d);return 1;}
            else if (a * ((b * c) + d) == 10) {printf("%d * ((%d * %d) + %d)\n",a,b,c,d);return 1;}
            else if (a * ((b * c) - d) == 10) {printf("%d * ((%d * %d) - %d)\n",a,b,c,d);return 1;}
            else if (a + (b + (c * d)) == 10) {printf("%d + (%d + (%d * %d))\n",a,b,c,d);return 1;}
            else if (a + (b - (c * d)) == 10) {printf("%d + (%d - (%d * %d))\n",a,b,c,d);return 1;}
            else if (a - (b + (c * d)) == 10) {printf("%d - (%d + (%d * %d))\n",a,b,c,d);return 1;}
            else if (a - (b - (c * d)) == 10) {printf("%d - (%d - (%d * %d))\n",a,b,c,d);return 1;}
            else if (a + (b * (c + d)) == 10) {printf("%d + (%d * (%d + %d))\n",a,b,c,d);return 1;}
            else if (a + (b * (c - d)) == 10) {printf("%d + (%d * (%d - %d))\n",a,b,c,d);return 1;}
            else if (a - (b * (c + d)) == 10) {printf("%d - (%d * (%d + %d))\n",a,b,c,d);return 1;}
            else if (a - (b * (c - d)) == 10) {printf("%d - (%d * (%d - %d))\n",a,b,c,d);return 1;}
            else if (a * (b + (c + d)) == 10) {printf("%d * (%d + (%d + %d))\n",a,b,c,d);return 1;}
            else if (a * (b - (c + d)) == 10) {printf("%d * (%d - (%d + %d))\n",a,b,c,d);return 1;}
            else if (a * (b + (c - d)) == 10) {printf("%d * (%d + (%d - %d))\n",a,b,c,d);return 1;}
            else if (a * (b - (c - d)) == 10) {printf("%d * (%d - (%d - %d))\n",a,b,c,d);return 1;}
            else if (a * (b + (c * d)) == 10) {printf("%d * (%d + (%d * %d))\n",a,b,c,d);return 1;}
            else if (a * (b - (c * d)) == 10) {printf("%d * (%d - (%d * %d))\n",a,b,c,d);return 1;}
            return 0;
 }
 bool df(int a,int b,int c,int d){//cout<<1;
      if(p(a,b,c,d))return 1;
      if(p(a,b,d,c))return 1;
      if(p(a,c,b,d))return 1;
      if(p(a,c,d,b))return 1;
      if(p(a,d,c,b))return 1;
      if(p(a,d,b,c))return 1;

      if(p(b,a,c,d))return 1;
      if(p(b,a,d,c))return 1;
      if(p(b,c,a,d))return 1;
      if(p(b,c,d,a))return 1;
      if(p(b,d,c,a))return 1;
      if(p(b,d,a,c))return 1;

      if(p(c,b,a,d))return 1;
      if(p(c,b,d,a))return 1;
      if(p(c,a,b,d))return 1;
      if(p(c,a,d,b))return 1;
      if(p(c,d,a,b))return 1;
      if(p(c,d,b,a))return 1;

      if(p(d,b,c,a))return 1;

      if(p(d,b,a,c))return 1;
      if(p(d,c,b,a))return 1;
      if(p(d,c,a,b))return 1;
      if(p(d,a,c,b))return 1;
      if(p(d,a,b,c))return 1;
      if(p(d,b,c,a))return 1;
      if(p(d,b,a,c))return 1;

      cout<<0<<endl;

      return 0;
 }
int main(){
      int a,c,b,d;
    while (cin>>a>>b>>c>>d,a)a=df(a,b,c,d);
}