#include"bits/stdc++.h" using namespace std; using ll = long long; using ld = long double; #define rep(i,m,n) for(ll i=(ll)m;i<(ll)n;i++) #define Endl endl #define pr(i,j) make_pair(i,j) const ll mod = 1000000007; const ll inf = 5e18; const ld pi = 3.14159265358979; int main() { string h, s; cin >> h >> s; ll a = h[h.length() - 1] - '0'; ll b = s[s.length() - 1] - '0'; if ((a + b) % 2 == 0)cout << "Possible" << endl; else cout << "Impossible" << endl; }