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