#include using namespace std; int main(){ ios_base::sync_with_stdio(false); cin.tie(nullptr); string H,S; cin >> H >> S; int h = H.at(H.size()-1)-'0',s = S.at(S.size()-1)-'0'; if((h+s)%2 == 0) cout << "Possible" << endl; else cout << "Impossible" << endl; }