#include <bits/stdc++.h>
using namespace std;
void print(int A, int B, int 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 << "|";
  cout << endl;
}
int main() {
  string s;
  cin >> s;
  int ar[3] = {}, ptr = 0, idx = 0;
  while (idx < s.length()) {
    if (s[idx++] == '|') {
      ar[ptr]++;
    } else {
      ptr++;
    }
  }
  int A = ar[0], B = ar[1], C = ar[2];
  if (A + B == C + 2) {
    if (A != 1) {
      A--;
    } else {
      B--;
    }
    C++;
  } else if (A + B + 2 == C) {
    C--;
    A++;
  }
  if (A + B != C) {
    cout << "Impossible" << endl;
    return 0;
  }
  print(A, B, C);
}
