#include using namespace std; int main(){ string H, S; cin >> H >> S; int h, s; h = (int)H[H.length() - 1]; s = (int)S[S.length() - 1]; if(h % 2 == s % 2){ cout << "Possible" << endl; }else{ cout << "Impossible" << endl; } return 0; }