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