#include <bits/stdc++.h>
using namespace std;
const int MOD = 1e9 + 7;
const int MAX = 100010;
int main() {
  string s;
  cin >> s;
  int n = s.size();
  int start, end;
  for (size_t i = 0, _n = (n); i < _n; ++i) {
    if (s[i] == '+') start = i;
    if (s[i] == '=') end = i;
  }
  int a = start;
  int b = end - start - 1;
  int c = n - end - 1;
  if (a + b == c) {
    cout << s << endl;
    return 0;
  } else {
    int x = a + b;
    int diff = abs(c - x);
    if (diff == 2) {
      if (x > c) {
        if (a > 1)
          a--, c++;
        else if (b > 1)
          b--, c++;
      } else {
        c--;
        a++;
      }
      while (a--) cout << "|";
      cout << "+";
      while (b--) cout << "|";
      cout << "=";
      while (c--) cout << "|";
      cout << endl;
    } else
      cout << "Impossible\n";
  }
  return 0;
}
