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