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