#include <stdio.h>
#include <bits/stdc++.h>
#include <atcoder/all>
using namespace atcoder;
using mint = modint998244353;
using namespace std;
#define rep(i,n) for (int i = 0; i < (n); ++i)
#define Inf32 1000000001
#define Inf64 1000000000000000001

int main(){
	
	string s,t;
	cin>>s>>t;
	int a = s.back()-'0';
	int b = t.back()-'0';
	if(a%2==b%2)cout<<"Possible"<<endl;
	else cout<<"Impossible"<<endl;
	
	return 0;
}