#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int a, b, c, count = 0;
  for (char ch : s) {
    if (ch == '=') {
      b = count;
      break;
    }
    if (ch != '+') count++;
    if (ch == '+') {
      a = count;
      count = 0;
    }
  }
  string tmp = "";
  int n = s.size();
  c = n - (a + b + 2);
  if (a + b == c)
    cout << s << "\n";
  else if (a + b < c) {
    if (a + b + 1 == c - 1) {
      for (int i = 0; i < a; i++) tmp += '|';
      tmp += '+';
      for (int i = 0; i < b + 1; i++) tmp += '|';
      tmp += '=';
      for (int i = 0; i < c - 1; i++) tmp += '|';
    } else
      cout << "Impossible\n";
  } else {
    if (a + b - 1 == c + 1) {
      if (a > b) {
        a = a - 1;
      } else
        b = b - 1;
      for (int i = 0; i < a; i++) tmp += '|';
      tmp += '+';
      for (int i = 0; i < b; i++) tmp += '|';
      tmp += '=';
      for (int i = 0; i < c + 1; i++) tmp += '|';
    } else
      cout << "Impossible\n";
  }
  cout << tmp << "\n";
  return 0;
}
