#include <bits/stdc++.h>
#pragma GCC optimize("Ofast")
#pragma GCC optimize("unroll-loops")
using namespace std;
int main() {
  cin.tie(0); cout.tie(0);
  ios::sync_with_stdio(false);
  cout << fixed << setprecision(12);
  string H, S;
  cin >> H >> S;
  if((H.back() - '0' + S.back() - '0') % 2 == 0) {
    cout << "Possible\n";
  } else {
    cout << "Impossible\n";
  }
  return 0;
}