Problem: One day Vasya was solving arithmetical problems. He wrote down an expression a + b = c in his notebook. When the teacher checked Vasya's work it turned out that Vasya had solved the problem incorrectly. Now Vasya tries to find excuses. He says that he simply forgot to write down several digits in numbers a, b and c, but he can't remember what numbers they actually were. Help Vasya, find such numbers x, y and z, with which the following conditions are met: 

  * x + y = z, 
  * from the expression x + y = z several digits can be erased in such a way that the result will be a + b = c, 
  * the expression x + y = z should have the minimal length. 

Input

The first and only input line contains the expression a + b = c (1 ≤ a, b, c ≤ 106, a, b and c don't contain leading zeroes) which is the expression Vasya wrote down.

Output

Print the correct expression x + y = z (x, y and z are non-negative numbers without leading zeroes). The expression a + b = c must be met in x + y = z as a subsequence. The printed solution should have the minimal possible number of characters. If there are several such solutions, you can print any of them.

Examples

Input

2+4=5


Output

21+4=25


Input

1+1=3


Output

1+31=32


Input

1+1=2


Output

1+1=2

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
struct number {
  int num[8];
  int len;
  void set(int x) {
    len = 0;
    while (x) {
      num[len++] = x % 10;
      x /= 10;
    }
  }
};
struct tran {
  int prei, prej, prek, prec, pli, plj, plk, vli, vlj, vlk;
  tran()
      : prei(0),
        prej(0),
        prek(0),
        prec(0),
        pli(0),
        plj(0),
        plk(0),
        vli(0),
        vlj(0),
        vlk(0){};
  tran(int prei, int prej, int prek, int prec, int pli, int plj, int plk,
       int vli, int vlj, int vlk)
      : prei(prei),
        prej(prej),
        prek(prek),
        prec(prec),
        pli(pli),
        plj(plj),
        plk(plk),
        vli(vli),
        vlj(vlj),
        vlk(vlk){};
  bool operator==(const tran& x) const {
    return prei == x.prei && prej == x.prej && prek == x.prek &&
           prec == x.prec && pli == x.pli && plj == x.plj && plk == x.plk &&
           vli == x.vli && vlj == x.vlj && vlk == x.vlk;
  }
};
const int INF = 123456789;
int n, m, s;
number a, b, c;
int dp[8][8][8][2][2][2][2];
tran p[8][8][8][2][2][2][2];
string A, B, C;
inline int d(int x) {
  x = x % 10;
  if (x < 0) x += 10;
  return x;
}
void dfs(int i, int j, int k, int cr, int ai, int aj, int ak) {
  for (int I = 0; I <= ai; I++)
    for (int J = 0; J <= aj; J++)
      for (int K = 0; K <= ak; K++)
        if (dp[i][j][k][cr][ai][aj][ak] < dp[i][j][k][cr][I][J][K]) {
          dp[i][j][k][cr][I][J][K] = dp[i][j][k][cr][ai][aj][ak];
          p[i][j][k][cr][I][J][K] = tran(i, j, k, cr, -1, -1, -1, ai, aj, ak);
          dfs(i, j, k, cr, I, J, K);
        }
  int res = dp[i][j][k][cr][ai][aj][ak] + ai + aj + ak;
  bool db = tran(i, j, k, cr, ai, aj, ak, 0, 0, 0) ==
            tran(0, 1, 1, 0, 1, 1, 1, 0, 0, 0);
  for (int I = 0; I <= 9; I++)
    for (int J = 0; J <= 9; J++) {
      int K = d(I + J + cr);
      if ((!I || ai) && (!J || aj) && (!K || ak)) {
        int mi = i + ((i == a.len) ? 0 : ((I == a.num[i]) ? 1 : 0));
        int mj = j + ((j == b.len) ? 0 : ((J == b.num[j]) ? 1 : 0));
        int mk = k + ((k == c.len) ? 0 : ((K == c.num[k]) ? 1 : 0));
        int nc = (I + J + cr) / 10;
        if (dp[mi][mj][mk][nc][ai][aj][ak] > res) {
          dp[mi][mj][mk][nc][ai][aj][ak] = res;
          p[mi][mj][mk][nc][ai][aj][ak] =
              tran(i, j, k, cr, I, J, K, ai, aj, ak);
          dfs(mi, mj, mk, nc, ai, aj, ak);
        }
      }
    }
}
int main() {
  scanf("%d+%d=%d", &n, &m, &s);
  a.set(n);
  b.set(m);
  c.set(s);
  for (int i = 0; i < 8; i++)
    for (int j = 0; j < 8; j++)
      for (int k = 0; k < 8; k++)
        for (int l = 0; l < 2; l++)
          for (int o = 0; o <= 1; o++)
            for (int q = 0; q <= 1; q++)
              for (int r = 0; r <= 1; r++) dp[i][j][k][l][o][q][r] = INF;
  dp[0][0][0][0][1][1][1] = 0;
  p[0][0][0][0][1][1][1] = tran(-1, -1, -1, -1, -1, -1, -1, -1, -1, -1);
  dfs(0, 0, 0, 0, 1, 1, 1);
  int i = a.len, j = b.len, k = c.len, cr = 0, ai = 0, aj = 0, ak = 0;
  while (!(p[i][j][k][cr][ai][aj][ak] ==
           tran(-1, -1, -1, -1, -1, -1, -1, -1, -1, -1))) {
    tran nxt = p[i][j][k][cr][ai][aj][ak];
    if (nxt.pli != -1) {
      A += char('0' + nxt.pli);
      B += char('0' + nxt.plj);
      C += char('0' + nxt.plk);
    }
    i = nxt.prei;
    j = nxt.prej;
    k = nxt.prek;
    cr = nxt.prec;
    ai = nxt.vli;
    aj = nxt.vlj;
    ak = nxt.vlk;
  }
  i = 0;
  while (A[i] == '0') i++;
  A = A.substr(i, A.size() - i);
  i = 0;
  while (B[i] == '0') i++;
  B = B.substr(i, B.size() - i);
  i = 0;
  while (C[i] == '0') i++;
  C = C.substr(i, C.size() - i);
  printf("%s+%s=%s\n", A.c_str(), B.c_str(), C.c_str());
  return 0;
}