#include <bits/stdc++.h>
using namespace std;
int main() {
  char a[110], b[110], c[110];
  string answer;
  int counter1, counter2, counter3;
  scanf("%[|]+%[|]=%[|]", a, b, c);
  counter1 = strlen(a);
  counter2 = strlen(b);
  counter3 = strlen(c);
  if (abs(counter1 + counter2 - counter3) != 2 &&
      abs(counter1 + counter2 - counter3) != 0) {
    cout << "Impossible" << endl;
  } else {
    if (counter1 + counter2 > counter3) {
      if (counter1 > 1)
        counter1--;
      else
        counter2--;
      counter3++;
    } else if (counter3 > counter1 + counter2) {
      counter3--;
      counter1++;
    }
    for (int k = 0; k < counter1; k++) cout << '|';
    cout << '+';
    for (int l = 0; l < counter2; l++) cout << '|';
    cout << '=';
    for (int n = 0; n < counter3; n++) cout << '|';
  }
  return 0;
}
