#include <bits/stdc++.h>
using namespace std;
long long a[3];
int main() {
  string s;
  cin >> s;
  long long flag = 0;
  memset(a, 0, sizeof(a));
  for (long long i = 0; i < (long long)s.size(); i++) {
    if (s[i] == '+')
      flag++;
    else if (s[i] == '=')
      flag++;
    else
      a[flag]++;
  }
  if (a[0] + a[1] == a[2] + 2) {
    if (a[0] > 1)
      a[0]--;
    else
      a[1]--;
    a[2]++;
  } else if (a[0] + a[1] + 2 == a[2]) {
    a[0]++;
    a[2]--;
  }
  if (a[0] + a[1] != a[2] || a[0] == 0 || a[1] == 0 || a[2] == 0) {
    cout << "Impossible" << endl;
    return 0;
  }
  for (long long i = 0; i < a[0]; i++) cout << "|";
  cout << "+";
  for (long long i = 0; i < a[1]; i++) cout << "|";
  cout << "=";
  for (long long i = 0; i < a[2]; i++) cout << "|";
  cout << endl;
  return 0;
}
