#include<bits/stdc++.h>
using namespace std;
#define TLE ios::sync_with_stdio(0),cin.tie(0),cout.tie(0)
unordered_map<string,int>mp;
unordered_map<string,string>fa;
int od,cnt,sum;
string Find(string x)
{
if(fa[x]!=x)return fa[x]=Find(fa[x]);
return x;
}
void mer(string x,string y)
{
string fx=Find(x),fy=Find(y);
if(fx!=fy){
cnt++;
fa[fx]=fy;
}
}
int main()
{
TLE;
string c1,c2;
while(cin>>c1>>c2)
{
if(mp[c1]==0)sum++,fa[c1]=c1;
if(mp[c2]==0)sum++,fa[c2]=c2;
mp[c1]++,mp[c2]++;
if(mp[c1]%2==1)od++;
else od--;
if(mp[c2]%2==1)od++;
else od--;
mer(c1,c2);
}
if((cnt==sum-1&&(od<=2))||(sum==0))cout<<"Possible"<<endl;
else cout<<"Impossible"<<endl;
return 0;
}