#include using namespace std; int main(){ string s,t; cin >> s >> t; cout << ((s.back()-'0')%2==(t.back()-'0')%2?"Possible":"Impossible") << endl; }