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;
#pragma GCC optimize("Ofast")
int dp[10][10][10][2];
int id[10][10][10][2], cnt;
const int INF = 0x3f3f3f3f;
struct Node {
  int i, j, k, l;
  Node() {}
  Node(int _i, int _j, int _k, int _l) { i = _i, j = _j, k = _k, l = _l; }
} trfrom[10][10][10][2];
inline int& f(const Node& x) { return dp[x.i][x.j][x.k][x.l]; }
vector<Node> state;
inline pair<int, int> trans(int nex, int x, string& s) {
  if (nex == 0 && x == (int((s).size())) + 1) {
    return pair<int, int>(x, 0);
  } else if (x == (int((s).size())) + 1)
    --x;
  if (x == 0) return pair<int, int>(x, 1);
  if (nex == s[x - 1]) return pair<int, int>(x - 1, 1);
  return pair<int, int>(x, 1);
}
priority_queue<pair<int, int>, vector<pair<int, int> >,
               greater<pair<int, int> > >
    que;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL), cout.tie(NULL);
  string s;
  cin >> s;
  int add = s.find('+');
  int ecr = s.find('=');
  string a = string(s.begin(), s.begin() + add);
  string b = string(s.begin() + add + 1, s.begin() + ecr);
  string c = string(s.begin() + ecr + 1, s.end());
  memset(dp, 0x3f, sizeof(dp));
  dp[(int((a).size())) + 1][(int((b).size())) + 1][(int((c).size())) + 1][0] =
      0;
  id[(int((a).size())) + 1][(int((b).size())) + 1][(int((c).size())) + 1][0] =
      cnt++;
  trfrom[(int((a).size())) + 1][(int((b).size())) + 1][(int((c).size())) + 1]
        [0] = Node(-1, -1, -1, -1);
  state.push_back(Node((int((a).size())) + 1, (int((b).size())) + 1,
                       (int((c).size())) + 1, 0));
  que.push(pair<int, int>(0, 0));
  reverse((a).begin(), (a).end());
  reverse((b).begin(), (b).end());
  reverse((c).begin(), (c).end());
  for (auto& ch : a) ch -= 48;
  for (auto& ch : b) ch -= 48;
  for (auto& ch : c) ch -= 48;
  while (que.size()) {
    pair<int, int> u = que.top();
    que.pop();
    if (u.first != f(state[u.second])) continue;
    for (register int x = (0); x <= (9); ++x)
      for (register int y = (0); y <= (9); ++y)
        for (register int z = (0); z <= (9); ++z) {
          int nl = -(state[u.second].l * 10) + x + y - z;
          if (nl != -1 && nl != 0) continue;
          nl = -nl;
          pair<int, int> ii = trans(x, state[u.second].i, a);
          pair<int, int> jj = trans(y, state[u.second].j, b);
          pair<int, int> kk = trans(z, state[u.second].k, c);
          int val = u.first + ii.second + jj.second + kk.second;
          int ni = ii.first, nj = jj.first, nk = kk.first;
          if (dp[ni][nj][nk][nl] > val) {
            if (dp[ni][nj][nk][nl] == INF) {
              id[ni][nj][nk][nl] = cnt++;
              state.push_back(Node(ni, nj, nk, nl));
            }
            dp[ni][nj][nk][nl] = val;
            trfrom[ni][nj][nk][nl] = Node(u.second, x, y, z);
            que.push(pair<int, int>(val, id[ni][nj][nk][nl]));
          }
        }
  }
  string p1, p2, p3;
  Node now = trfrom[0][0][0][0];
  while (now.i != -1) {
    p1 += now.j + '0';
    p2 += now.k + '0';
    p3 += now.l + '0';
    now =
        trfrom[state[now.i].i][state[now.i].j][state[now.i].k][state[now.i].l];
  }
  while (p1.size() > 1 && p1.back() == 48) p1.pop_back();
  while (p2.size() > 1 && p2.back() == 48) p2.pop_back();
  while (p3.size() > 1 && p3.back() == 48) p3.pop_back();
  reverse((p1).begin(), (p1).end());
  reverse((p2).begin(), (p2).end());
  reverse((p3).begin(), (p3).end());
  cout << (p1 + "+" + p2 + "=" + p3) << '\n';
  return 0;
}