#include <bits/stdc++.h>
using namespace std;
int main() {
  int suauge, vaikai;
  cin >> suauge >> vaikai;
  if (suauge == 0 and vaikai != 0) {
    cout << "Impossible";
  } else {
    int maz = suauge + max(0, vaikai - suauge);
    int daug = suauge + max(vaikai - 1, 0);
    cout << maz << " " << daug;
  }
}
