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