#include using namespace std; using ll = long long; int main(){ ios::sync_with_stdio(false); cin.tie(0); string s, t; cin >> s >> t; cout << ((s.back() - '0') % 2 == (t.back() - '0') % 2 ? "Possible" : "Impossible") << '\n'; }