console.log((args=>{
  const S = args.trim().split('');
  const stack = [[S.slice(0,3),S[3]]];
  while ( stack.length ) {
    const [a,s] = stack.pop();
    if ( a.length === 0 ) {
      if ( eval(s) === 7 ) return s+'=7';
      else continue;
    }
    const v = a.pop();
    stack.push([[...a],v+'+'+s]);
    stack.push([[...a],v+'-'+s]);
  }
})(require('fs').readFileSync('/dev/stdin', 'utf8')));
