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