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 MAXL = 15;
struct block {
  int isPos, l1, l2, l3, u1, u2, u3, n1, n2, n3, lstUpd;
  void set(int IsPos, int L1, int L2, int L3, int U1, int U2, int U3, int N1,
           int N2, int N3, int LstUpd) {
    isPos = IsPos;
    l1 = L1;
    l2 = L2;
    l3 = L3;
    u1 = U1;
    u2 = U2;
    u3 = U3;
    n1 = N1;
    n2 = N2;
    n3 = N3, lstUpd = LstUpd;
  }
};
block dp[MAXL + 2][MAXL + 2][2][9][9][9];
long long A, B, C;
int vals[3][8];
block ans;
void myPrint(int L1, int L2, int L3, int U1, int U2, int U3) {
  block t = dp[L1][L2][L3][U1][U2][U3];
  printf("Print for %d %d %d %d %d %d....\n", L1, L2, L3, U1, U2, U3);
  printf("l1 = %d\n", t.l1);
  printf("l2 = %d\n", t.l2);
  printf("l3 = %d\n", t.l3);
  printf("u1 = %d\n", t.u1);
  printf("u2 = %d\n", t.u2);
  printf("u3 = %d\n", t.u3);
  printf("n1 = %d\n", t.n1);
  printf("n2 = %d\n", t.n2);
  printf("n3 = %d\n\n\n", t.n3);
}
int main() {
  int s1, s2, s3;
  string str;
  cin >> str;
  for (int i = str.size() - 1, k = 2, pos = 0; i >= 0; i--) {
    if (str[i] == '=') {
      k--;
      s3 = pos;
      pos = 0;
      continue;
    }
    if (str[i] == '+') {
      k--;
      s2 = pos;
      pos = 0;
      continue;
    }
    vals[k][pos] = str[i] - 48;
    pos++;
    if (!i) s1 = pos;
  }
  dp[0][0][0][0][0][0].isPos = 1;
  for (int l1 = 0; l1 < MAXL; l1++)
    for (int l2 = 0; l2 < MAXL; l2++)
      for (int l3 = 0; l3 < 2; l3++)
        for (int u1 = 0; u1 <= s1; u1++)
          for (int u2 = 0; u2 <= s2; u2++)
            for (int u3 = 0; u3 <= s3; u3++)
              if (dp[l1][l2][l3][u1][u2][u3].isPos)
                for (int v1 = -1; v1 <= (l2 > l1 ? 0 : 9); v1++)
                  for (int v2 = -1; v2 <= (l1 > l2 ? 0 : 9); v2++) {
                    block t;
                    block par = dp[l1][l2][l3][u1][u2][u3];
                    t.set(1, l1, l2, v1 + v2 > 9, u1, u2, u3, v1, v2,
                          (v1 + v2) % 10, dp[l1][l2][l3][u1][u2][u3].lstUpd);
                    if (v1 == -1 && v2 == -1) continue;
                    if (v1 != -1)
                      t.l1++;
                    else
                      t.n1 = 0;
                    if (v2 != -1)
                      t.l2++;
                    else
                      t.n2 = 0;
                    t.n3 = (t.n1 + t.n2 + l3) % 10;
                    t.l3 = (t.n1 + t.n2 + l3) / 10;
                    int curUpd = max(t.l1, t.l2);
                    if (t.lstUpd == max(l1, l2) && (t.l1 == l1 || t.l2 == l2) &&
                        l1 == l2 && u3 - 1 >= 0 && vals[2][u3 - 1] != t.n3) {
                    }
                    dp[t.l1][t.l2][t.l3][u1][u2][t.u3].set(1, l1, l2, l3, u1,
                                                           u2, t.u3, t.n1, t.n2,
                                                           t.n3, t.lstUpd);
                    if (vals[0][u1] == v1)
                      dp[t.l1][t.l2][t.l3][u1 + 1][u2][t.u3].set(
                          1, l1, l2, l3, u1, u2, t.u3, t.n1, t.n2, t.n3,
                          t.lstUpd);
                    if (vals[1][u2] == v2)
                      dp[t.l1][t.l2][t.l3][u1][u2 + 1][t.u3].set(
                          1, l1, l2, l3, u1, u2, t.u3, t.n1, t.n2, t.n3,
                          t.lstUpd);
                    if (vals[0][u1] == v1 && vals[1][u2] == v2)
                      dp[t.l1][t.l2][t.l3][u1 + 1][u2 + 1][t.u3].set(
                          1, l1, l2, l3, u1, u2, t.u3, t.n1, t.n2, t.n3,
                          t.lstUpd);
                    if (!(curUpd == max(l1, l2) && vals[2][t.u3] == 0 &&
                          t.n3 == 0)) {
                      if (vals[1][u2] == v2 && vals[2][t.u3] == t.n3)
                        dp[t.l1][t.l2][t.l3][u1][u2 + 1][t.u3 + 1].set(
                            1, l1, l2, l3, u1, u2, t.u3, t.n1, t.n2, t.n3,
                            curUpd);
                      if (vals[0][u1] == v1 && vals[2][t.u3] == t.n3)
                        dp[t.l1][t.l2][t.l3][u1 + 1][u2][t.u3 + 1].set(
                            1, l1, l2, l3, u1, u2, t.u3, t.n1, t.n2, t.n3,
                            curUpd);
                      if (vals[2][t.u3] == t.n3)
                        dp[t.l1][t.l2][t.l3][u1][u2][t.u3 + 1].set(
                            1, l1, l2, l3, u1, u2, t.u3, t.n1, t.n2, t.n3,
                            curUpd);
                      if (vals[0][u1] == v1 && vals[1][u2] == v2 &&
                          vals[2][t.u3] == t.n3)
                        dp[t.l1][t.l2][t.l3][u1 + 1][u2 + 1][t.u3 + 1].set(
                            1, l1, l2, l3, u1, u2, t.u3, t.n1, t.n2, t.n3,
                            curUpd);
                    }
                  }
  long long A = 0, B = 0, C = 0;
  int minL = 100;
  for (int l1 = 0; l1 < MAXL; l1++) {
    for (int l2 = 0; l2 < MAXL; l2++)
      for (int l3 = 0; l3 < 2; l3++) {
        if (dp[l1][l2][l3][s1][s2][s3].isPos)
          if (l1 + l2 + max(l1, l2) + l3 < minL) {
            if (l3)
              C = pow(10.0, max(l1, l2));
            else
              C = 0;
            ans = dp[l1][l2][l3][s1][s2][s3];
            minL = l1 + l2 + max(l1, l2) + l3;
          }
      }
  }
  for (;;) {
    A += pow(10.0, ans.l1) * ans.n1;
    B += pow(10.0, ans.l2) * ans.n2;
    C += pow(10.0, max(ans.l1, ans.l2)) * ans.n3;
    ans = dp[ans.l1][ans.l2][ans.l3][ans.u1][ans.u2][ans.u3];
    if (!(ans.l1 != 0 || ans.l2 != 0 || ans.l3 != 0 || ans.u1 != 0 ||
          ans.u2 != 0 || ans.u3 != 0 || ans.n1 != 0 || ans.n2 != 0 ||
          ans.n3 != 0))
      break;
  }
  cout << A << "+" << B << "=" << C;
  return 0;
}