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