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;
const int maxn = 1e5 + 10, mod = 1e9 + 7;
const long long inf = 1e18;
int dp[9][9][9][2];
pair<pair<int, int>, int> lst[9][9][9][2], tdl[2];
int tdo[2];
inline void UPD(int i, int j, int k, int rm, int msk, int MSK, int AA, int BB,
                int CC, int delta) {
  if (msk == 0 && MSK == 0) {
    if (delta != rm && tdo[delta] > (3 - (i == 0) - (j == 0) - (k == 0))) {
      tdo[delta] = 3 - (i == 0) - (j == 0) - (k == 0);
      tdl[delta] = {{100 * AA + 10 * BB + CC, msk}, MSK};
    }
    return;
  }
  int num = dp[i - (((msk) >> (0)) & 1) - (((MSK) >> (0)) & 1)]
              [j - (((msk) >> (1)) & 1) - (((MSK) >> (1)) & 1)]
              [k - (((msk) >> (2)) & 1) - (((MSK) >> (2)) & 1)][rm] +
            3 - __builtin_popcount(msk) - (i == 0) - (j == 0) - (k == 0);
  if (dp[i][j][k][delta] > num) {
    dp[i][j][k][delta] = num;
    lst[i][j][k][delta] = {{100 * AA + 10 * BB + CC, msk}, MSK};
  }
}
int main() {
  string s;
  cin >> s;
  string a, b, c;
  int num = 0;
  for (int i = 0; i < int((s).size()); i++) {
    if (s[i] == '+' || s[i] == '=') {
      num++;
      continue;
    }
    if (num == 0) a += s[i];
    if (num == 1) b += s[i];
    if (num == 2) c += s[i];
  }
  int na = int((a).size()) + 1, nb = int((b).size()) + 1,
      nc = int((c).size()) + 1;
  for (int i = 0; i <= na; i++) {
    for (int j = 0; j <= nb; j++) {
      dp[i][j][0][0] = dp[i][j][0][1] = 100;
    }
  }
  dp[0][0][0][0] = 0;
  for (int i = 0; i <= na; i++) {
    for (int j = 0; j <= nb; j++) {
      for (int k = 1; k <= nc; k++) {
        for (int delta = 0; delta <= 1; delta++) {
          dp[i][j][k][delta] = 100;
          tdo[0] = tdo[1] = 100;
          for (int msk = 0; msk < 8; msk++) {
            if ((i < 2 && (((msk) >> (0)) & 1)) ||
                (j < 2 && (((msk) >> (1)) & 1)) ||
                (k < 2 && (((msk) >> (2)) & 1)))
              continue;
            for (int A = 0; A < 10; A++) {
              for (int B = 0; B < 10; B++) {
                int AA = ((((msk) >> (0)) & 1) ? (a[i - 2] - '0') : (A));
                int BB = ((((msk) >> (1)) & 1) ? (b[j - 2] - '0') : (B));
                int CC = ((((msk) >> (2)) & 1) ? (c[k - 2] - '0') : (-1));
                if (i == 0) AA = 0;
                if (j == 0) BB = 0;
                if (CC != -1 && (AA + BB + delta) % 10 != CC) continue;
                if (CC == -1) CC = (AA + BB + delta) % 10;
                int rm = (AA + BB + delta) > 9;
                int MMM =
                    ((i == 1 || (i == 2 && (((msk) >> (0)) & 1))) && AA != 0) +
                    2 * ((j == 1 || (j == 2 && (((msk) >> (1)) & 1))) &&
                         BB != 0) +
                    4 * ((k == 1 || (k == 2 && (((msk) >> (2)) & 1))) &&
                         CC != 0);
                int MSK = MMM;
                while (MSK > 0) {
                  UPD(i, j, k, rm, msk, MSK, AA, BB, CC, delta);
                  MSK = (MSK - 1) & MMM;
                }
                UPD(i, j, k, rm, msk, 0, AA, BB, CC, delta);
              }
            }
          }
        }
        if ((dp[i][j][k][1] + tdo[0]) < dp[i][j][k][0]) {
          dp[i][j][k][0] = dp[i][j][k][1] + tdo[0];
          lst[i][j][k][0] = tdl[0];
        }
        if ((dp[i][j][j][0] + tdo[1]) < dp[i][j][k][0]) {
          dp[i][j][k][1] = dp[i][j][k][0] + tdo[1];
          lst[i][j][k][1] = tdl[1];
        }
      }
    }
  }
  string A, B, C;
  int rm = 0;
  while (na >= 2 || nb >= 2 || nc >= 2 || rm > 0) {
    int NUM = lst[na][nb][nc][rm].first.first,
        msk1 = lst[na][nb][nc][rm].first.second,
        msk2 = lst[na][nb][nc][rm].second;
    int aa = (NUM / 100), bb = ((NUM / 10) % 10), cc = (NUM % 10);
    if (na > 0) A = char(aa + '0') + A;
    if (nb > 0) B = char(bb + '0') + B;
    if (nc > 0) C = char(cc + '0') + C;
    rm = (rm + aa + bb) / 10;
    na -= (((msk1) >> (0)) & 1) + (((msk2) >> (0)) & 1);
    nb -= (((msk1) >> (1)) & 1) + (((msk2) >> (1)) & 1);
    nc -= (((msk1) >> (2)) & 1) + (((msk2) >> (2)) & 1);
  }
  cout << A << "+" << B << "=" << C << endl;
}