#include <bits/stdc++.h>
using namespace std;
int main() {
  string str;
  int i, j, l, x, y, a, b, c, countt = 0;
  cin >> str;
  l = str.size();
  for (i = 0; i < l; i++) {
    if (str[i] == '|')
      countt++;
    else if (str[i] == '+') {
      a = countt;
      countt = 0;
    } else if (str[i] == '=') {
      b = countt;
      countt = 0;
    }
  }
  c = countt;
  if ((a + b) == c)
    cout << str << endl;
  else if (((a + 1) + b) == (c - 1)) {
    for (i = 0; i <= a; i++) cout << "|";
    cout << "+";
    for (i = 1; i <= b; i++) cout << "|";
    cout << "=";
    for (i = 1; i < c; i++) cout << "|";
    cout << endl;
  } else if ((a) + (b - 1) == (c + 1) && (b > a)) {
    for (i = 1; i <= a; i++) cout << "|";
    cout << "+";
    for (i = 1; i < b; i++) cout << "|";
    cout << "=";
    for (i = 0; i <= c; i++) cout << "|";
    cout << endl;
  } else if (((a - 1) + b) == (c + 1) && ((a > b) || (a == b))) {
    for (i = 1; i < a; i++) cout << "|";
    cout << "+";
    for (i = 1; i <= b; i++) cout << "|";
    cout << "=";
    for (i = 0; i <= c; i++) cout << "|";
    cout << endl;
  } else
    cout << "Impossible" << endl;
  return 0;
}
