#include <bits/stdc++.h>
using namespace std;
const int MAX = 2001;
int a[10000];
int main() {
  int n, m;
  cin >> n >> m;
  if (n == 0 && m > 0) {
    cout << "Impossible";
    return 0;
  }
  if (m == 0) {
    cout << n << " " << n;
    return 0;
  }
  int k = n;
  if (n >= m) {
    cout << k << " " << n + m - 1;
    return 0;
  } else {
    k += m;
    k -= min(n, m);
  }
  cout << k << " " << n + m - 1;
  return 0;
}
