#include <bits/stdc++.h>
using namespace std;
void yay(int flag) {
  if (flag == 0)
    cout << "NO";
  else
    cout << "YES";
  cout << endl;
}
int eve(long long int x) {
  if (x % 2 == 0) return 1;
  return 0;
}
void solve() {
  int n, k;
  cin >> n >> k;
  if (n == 0 && k != 0) {
    cout << "Impossible";
  } else if (k == 0) {
    cout << n << " " << n;
  } else {
    int x;
    int y;
    y = n + k - 1;
    if (n >= k)
      x = n;
    else
      x = n + (k - n);
    cout << x << " " << y;
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  int t = 1;
  while (t--) {
    solve();
    cout << "\n";
  }
}
