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