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