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