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