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