#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long n, m;
  cin >> n >> m;
  if (n == 0 && m > 0)
    cout << "Impossible";
  else {
    cout << max(m, n) << " " << n + max(m - 1, 0LL);
  }
}
int main() {
  ios_base::sync_with_stdio(false), cin.tie(nullptr);
  long long T;
  T = 1;
  for (int t = 0; t < T; t++) {
    solve();
  }
  return 0;
}
