#include <bits/stdc++.h>
using namespace std;
long long a, b, c, i, k;
string s;
deque<string> v(400);
void prov() {
  if (abs((a + b) - c) == 0)
    cout << s;
  else if (c - (a + b) == 2) {
    v.push_front("|");
    for (i = 0; i < s.length(); i++) {
      cout << v[i];
    }
  } else if ((a + b) - c == 2 && s[1] == 43) {
    v[s.length()] = "|";
    for (i = 0; i <= s.length(); i++) {
      if (i != k + 1) cout << v[i];
    }
  } else if ((a + b) - c == 2) {
    v[s.length()] = "|";
    for (i = 1; i <= s.length(); i++) {
      cout << v[i];
    }
  } else
    cout << "Impossible";
}
int main() {
  cin >> s;
  while (s[i] != 43) {
    a++;
    i++;
  }
  k = i;
  i++;
  while (s[i] != 61) {
    b++;
    i++;
  }
  i++;
  while (i < s.length()) {
    c++;
    i++;
  }
  for (i = 0; i <= s.length(); i++) {
    v[i] = s[i];
  }
  prov();
}
