#include <bits/stdc++.h>
using namespace std;
int main() {
  int m, n;
  while (~scanf("%d%d", &n, &m)) {
    if (!n && m) {
      printf("Impossible\n");
      continue;
    }
    int ans;
    if (m)
      ans = n + m - 1;
    else
      ans = n;
    printf("%d %d\n", max(n, m), ans);
  }
  return 0;
}
