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