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