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 state {
  int over, x, y, z;
  void set(int Over, int X, int Y, int Z) { over = Over, x = X, y = Y, z = Z; }
  int operator==(const state& o) const {
    return o.x == x && o.y == y && o.z == z && o.over == over;
  }
};
struct edge {
  state to;
  int w, a, b, c;
};
const int inf = (int)1e9;
edge pre[2][10][10][10];
vector<edge> adj[2][10][10][10];
vector<state> q;
string s[4], ans[4], a;
int d[2][10][10][10], u[2][10][10][10];
void add(int over, int x, int y, int z, int Nover, int Nx, int Ny, int Nz,
         int w, int a, int b, int c) {
  edge e;
  e.to.set(Nover, Nx, Ny, Nz);
  e.w = w, e.a = a, e.b = b, e.c = c;
  adj[over][x][y][z].push_back(e);
}
void make(int over, int x, int y, int z) {
  if (x + y + z == 0) return;
  for (int a = 0; a <= 9; ++a)
    for (int b = 0; b <= 9; ++b) {
      int c = (a + b + over) % 10, Nx = x, Ny = y, Nz = z;
      int Nover = (a + b + over) / 10, w = 3;
      if (x == 0 && a) continue;
      if (y == 0 && b) continue;
      if (x > 1 && s[1][x - 2] - '0' == a) Nx--, w--;
      if (y > 1 && s[2][y - 2] - '0' == b) Ny--, w--;
      if (z > 0 && s[3][z - 1] - '0' == c) Nz--, w--;
      if (x == 0 && a == 0) w--;
      if (y == 0 && b == 0) w--;
      for (int dx = 0; dx < 2; ++dx)
        for (int dy = 0; dy < 2; ++dy)
          if ((dx == 0 || Nx == 1) && (dy == 0 || Ny == 1))
            add(over, x, y, z, Nover, Nx - dx, Ny - dy, Nz, w, a, b, c);
    }
}
void spfa(state st) {
  q.clear();
  q.push_back(st);
  for (int over = 0; over < 2; ++over)
    for (int x = 0; x <= s[1].size() + 1; ++x)
      for (int y = 0; y <= s[2].size() + 1; ++y)
        for (int z = 0; z <= s[3].size(); ++z) d[over][x][y][z] = inf;
  d[st.over][st.x][st.y][st.z] = 0;
  memset(u, 0, sizeof(u));
  for (int f = 0; f < q.size(); ++f) {
    state cur = q[f];
    int over = cur.over, x = cur.x, y = cur.y, z = cur.z;
    u[over][x][y][z] = 0;
    for (int i = 0; i < adj[over][x][y][z].size(); ++i) {
      state v = adj[over][x][y][z][i].to;
      if (d[over][x][y][z] + adj[over][x][y][z][i].w <
          d[v.over][v.x][v.y][v.z]) {
        d[v.over][v.x][v.y][v.z] = d[over][x][y][z] + adj[over][x][y][z][i].w;
        edge& r = pre[v.over][v.x][v.y][v.z];
        r = adj[over][x][y][z][i];
        r.to = cur;
        if (!u[v.over][v.x][v.y][v.z]) {
          u[v.over][v.x][v.y][v.z] = 1;
          q.push_back(v);
        }
      }
    }
  }
}
void print(int x) {
  for (int i = 0; i < ans[x].size(); ++i)
    if (ans[x][i] != '0') {
      for (int j = i; j < ans[x].size(); ++j) cout << ans[x][j];
      break;
    }
}
int main() {
  cin >> a;
  for (int i = 0, now = 1; i < a.size(); ++i)
    if (isdigit(a[i]))
      s[now] += a[i];
    else
      now++;
  for (int over = 0; over < 2; ++over)
    for (int x = 0; x <= s[1].size() + 1; ++x)
      for (int y = 0; y <= s[2].size() + 1; ++y)
        for (int z = 0; z <= s[3].size(); ++z) make(over, x, y, z);
  state st, en;
  st.set(0, s[1].size() + 1, s[2].size() + 1, s[3].size());
  spfa(st);
  en.set(0, 0, 0, 0);
  if (d[0][0][0][0] > d[1][0][0][0] + 1) en.over = 1;
  while (!(en == st)) {
    edge cur = pre[en.over][en.x][en.y][en.z];
    ans[1] += (char)(cur.a + '0');
    ans[2] += (char)(cur.b + '0');
    ans[3] += (char)(cur.c + '0');
    en = cur.to;
  }
  print(1);
  cout << "+";
  print(2);
  cout << "=";
  print(3);
  cout << endl;
}