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 N = 6 + 2, L = 18 + 2;
bool dp[N][N][N][L][L][L][2];
int par[N][N][N][L][L][L][2];
string s, a, b, c, x, y, z;
int na, nb, nc;
char ok(char x) { return (x % '0' % 10 + 10) % 10 + '0'; }
bool ten(int c) { return c % '0' > 9; }
int prev(int x) { return x-- ? x : 0; }
void calc(int i, int j, int k, int l1, int l2, int l3, int t) {
  if (i > l1 || j > l2 || k > l3 || l1 > l3 || l2 > l3) return;
  bool w1 = l1, w2 = l2;
  bool &ans = dp[i][j][k][l1][l2][l3][t];
  int &prv = par[i][j][k][l1][l2][l3][t];
  l1 = prev(l1), l2 = prev(l2), l3 = prev(l3);
  if (i && dp[i - 1][j][k][l1][l2][l3][ten(a[i - 1] + t)])
    ans = true, prv = 2 | ten(a[i - 1] + t);
  if (j && dp[i][j - 1][k][l1][l2][l3][ten(b[j - 1] + t)])
    ans = true, prv = 4 | ten(b[j - 1] + t);
  if (k && (w1 || w2) && dp[i][j][k - 1][l1][l2][l3][t && c[k - 1] == '0'])
    ans = true, prv = 8 | (t && c[k - 1] == '0');
  if (i && j && dp[i - 1][j - 1][k][l1][l2][l3][ten(a[i - 1] + b[j - 1] + t)])
    ans = true, prv = 6 | ten(a[i - 1] + b[j - 1] + t);
  if (i && k && (w2 || ok(a[i - 1] + t) == c[k - 1]) &&
      dp[i - 1][j][k - 1][l1][l2][l3][a[i - 1] + t > c[k - 1]])
    ans = true, prv = 10 | (a[i - 1] + t > c[k - 1]);
  if (j && k && (w1 || ok(b[j - 1] + t) == c[k - 1]) &&
      dp[i][j - 1][k - 1][l1][l2][l3][b[j - 1] + t > c[k - 1]])
    ans = true, prv = 12 | (b[j - 1] + t > c[k - 1]);
  if (i && j && k && ok(a[i - 1] + b[j - 1] + t) == c[k - 1] &&
      dp[i - 1][j - 1][k - 1][l1][l2][l3][ten(a[i - 1] + b[j - 1] + t)])
    ans = true, prv = 14 | ten(a[i - 1] + b[j - 1] + t);
}
void find(int i, int j, int k, int l1, int l2, int l3, int t) {
  if (!l3) return;
  int prv = par[i][j][k][l1][l2][l3][t], w1 = prv >> 1 & 1, w2 = prv >> 2 & 1,
      w3 = prv >> 3 & 1;
  find(i - w1, j - w2, k - w3, prev(l1), prev(l2), prev(l3), prv & 1);
  z += w3 ? c[k - 1] : '0' + t;
  if (l1) {
    x += w1 ? a[i - 1] : '0';
    if (!w3) z.back() = ok(x.back() + z.back());
  }
  if (l2) {
    y += w2 ? b[j - 1] : '0';
    if (!w3) z.back() = ok(y.back() + z.back());
  }
  if (l1 && !w1) x.back() = ok(z.back() - y.back() - t);
  if (l2 && !w2) y.back() = ok(z.back() - x.back() - t);
}
void read_input() {
  cin >> s;
  for (auto x : s)
    if (x == '+')
      swap(a, b);
    else if (x == '=') {
      swap(a, b);
      swap(a, c);
    } else
      a += x;
  swap(a, c);
  na = a.size();
  nb = b.size();
  nc = c.size();
}
void solve() {
  dp[0][0][0][0][0][0][0] = true;
  for (int i = 0; i <= na; i++)
    for (int j = 0; j <= nb; j++)
      for (int k = 0; k <= nc; k++)
        for (int t = 0; t < 2; t++)
          for (int l1 = 0; l1 < L; l1++)
            for (int l2 = 0; l2 < L; l2++)
              for (int l3 = 0; l3 < L; l3++) calc(i, j, k, l1, l2, l3, t);
}
void write_output() {
  for (int len = 0; true; len++)
    for (int i = 0; i <= len; i++)
      for (int j = 0, k = len - i; ~k; j++, k--)
        if (na + i < L && nb + j < L && nc + k < L &&
            dp[na][nb][nc][na + i][nb + j][nc + k][0]) {
          find(na, nb, nc, na + i, nb + j, nc + k, 0);
          cout << x + '+' + y + '=' + z;
          return;
        }
}
int main() {
  ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  read_input(), solve(), write_output();
  return 0;
}