#include using namespace std; int main(){ string H, S; cin >> H >> S; if(abs(H.back() - S.back()) % 2 == 0) cout << "Possible"; else cout << "Impossible"; }