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