#include <bits/stdc++.h>
using namespace std;
struct cooooo {
  int val;
  int a;
  int b;
};
inline bool comp(struct cooooo &a, struct cooooo &b) { return a.val < b.val; }
int main() {
  long long n, m;
  long long coun = 0;
  long long ans = 0;
  int i, j, k;
  cin >> n >> m;
  if (m > n)
    ans = m;
  else
    ans = n;
  coun = ((n) < (((m) < (n + m - 1) ? (n + m - 1) : (m)))
              ? (((m) < (n + m - 1) ? (n + m - 1) : (m)))
              : (n));
  if (n <= 0 && m == 0) {
    cout << 0 << " " << 0;
    return 0;
  }
  if (n <= 0) {
    cout << "Impossible" << endl;
    return 0;
  }
  cout << ans << " " << coun;
  return 0;
}
