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