#include <bits/stdc++.h>
using namespace std;
int main() {
  int a[3] = {0}, cnt = 0;
  string x;
  cin >> x;
  for (int i = 0; i < (int)x.length(); i++) {
    if (x[i] == '+' || x[i] == '=')
      cnt++;
    else
      a[cnt]++;
  }
  if (a[0] + a[1] == a[2])
    cout << x << endl;
  else if (abs((a[0] + a[1]) - a[2]) == 2) {
    if (a[0] + a[1] > a[2]) {
      if (a[0] > a[1]) {
        a[0]--;
        a[2]++;
      } else {
        a[1]--;
        a[2]++;
      }
    } else if (a[2] > a[0] + a[1]) {
      if (a[0] > a[1]) {
        a[1]++;
        a[2]--;
      } else {
        a[0]++;
        a[2]--;
      }
    }
    for (int i = 1; i <= a[0]; i++) cout << "|";
    cout << "+";
    for (int i = 1; i <= a[1]; i++) cout << "|";
    cout << "=";
    for (int i = 1; i <= a[2]; i++) cout << "|";
  } else
    cout << "Impossible" << endl;
  return 0;
}
