#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, a, b, c;
  cin >> n >> m;
  a = max(n, m);
  b = max(n, m - 1 + n);
  if (n == 0 && m != 0) {
    cout << "Impossible";
  } else {
    cout << a << " " << b;
  }
}
