#define _CRT_SECURE_NO_WARNINGS
#include<bits/stdc++.h>
using namespace std;
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
#define ull unsigned long long
#define ll long long
#define ff first
#define ss second
#define all(v) ((v).begin()), ((v).end())
#define allr(v) ((v).rbegin()), ((v).rend())
#define pb push_back
#define iq(v) v.resize(unique(v.begin(),v.end())-v.begin())
#define bye return 0
#define yes cout << "YES\n"
#define no cout << "NO\n"
#define TC int t_t=1;cin>>t_t;while (t_t--)
#define endl '\n'
#define clr(v,d) memset(v,d,sizeof(v))
#define ordered_set tree<int, null_type,less<int>, rb_tree_tag,tree_order_statistics_node_update>
const ll OO = LLONG_MAX ;
const ll Mod=1e9+7;
const int N = 1e5+5 ;
void fast()
{
std::ios_base::sync_with_stdio(0);
cin.tie(NULL);
#ifndef ONLINE_JUDGE
freopen("Input.txt", "r", stdin);
freopen("Output.txt", "w", stdout);
#endif
}
int a[5] ;
ll x =23 ;
bool solve(int idx , ll sum)
{
if (idx == 5)
{
return sum == x ;
}
return solve(idx+1 , sum -=a[idx]) ||
solve(idx+1 , sum +=a[idx]) ||
solve(idx+1 , sum *=a[idx]) ;
}
int main() {
fast();
while (1)
{
cin>>a[0]>>a[1]>>a[2]>>a[3]>>a[4] ;
if ( a[0] == 0 && a[1] == 0 && a[2] == 0 && a[3] == 0 && a[4] == 0 ) return 0 ;
sort(a,a+5) ;
bool ok = false ;
do {
if (solve(1, a[0]))
{
ok = 1 ;
break ;
}
}
while (next_permutation(a,a+5)) ;
if (ok)
cout << "Possible\n" ;
else
cout << "Impossible\n" ;
}
return 0;
}
I2RlZmluZSBfQ1JUX1NFQ1VSRV9OT19XQVJOSU5HUwojaW5jbHVkZTxiaXRzL3N0ZGMrKy5oPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwojaW5jbHVkZSA8ZXh0L3BiX2RzL2Fzc29jX2NvbnRhaW5lci5ocHA+CiNpbmNsdWRlIDxleHQvcGJfZHMvdHJlZV9wb2xpY3kuaHBwPgp1c2luZyBuYW1lc3BhY2UgX19nbnVfcGJkczsKCgojZGVmaW5lIHVsbCAgICAgICAgICAgICAgICAgIHVuc2lnbmVkIGxvbmcgbG9uZwojZGVmaW5lIGxsICAgICAgICAgICAgICAgICAgIGxvbmcgbG9uZwojZGVmaW5lIGZmICAgICAgICAgICAgICAgICAgIGZpcnN0CiNkZWZpbmUgc3MgICAgICAgICAgICAgICAgICAgc2Vjb25kCiNkZWZpbmUgYWxsKHYpCQkgICAgICAgICAoKHYpLmJlZ2luKCkpLCAoKHYpLmVuZCgpKQojZGVmaW5lIGFsbHIodikJCSAgICAgICAgICgodikucmJlZ2luKCkpLCAoKHYpLnJlbmQoKSkKI2RlZmluZSBwYiAgICAgICAgICAgICAgICAgICAgcHVzaF9iYWNrCiNkZWZpbmUgaXEodikgICAgICAgICAgICAgICAgIHYucmVzaXplKHVuaXF1ZSh2LmJlZ2luKCksdi5lbmQoKSktdi5iZWdpbigpKQojZGVmaW5lIGJ5ZSAgICAgICAgICAgICAgICAgICByZXR1cm4gMAojZGVmaW5lIHllcyAgICAgICAgICAgICAgICAgICBjb3V0IDw8ICJZRVNcbiIKI2RlZmluZSBubyAgICAgICAgICAgICAgICAgICAgY291dCA8PCAiTk9cbiIKI2RlZmluZSBUQyAgICAgICAgICAgICAgICAgICAgaW50IHRfdD0xO2Npbj4+dF90O3doaWxlICh0X3QtLSkKI2RlZmluZSBlbmRsICAgICAgICAgICAgICAgICAgJ1xuJwojZGVmaW5lIGNscih2LGQpICAgICAgICAgICAgICBtZW1zZXQodixkLHNpemVvZih2KSkKI2RlZmluZSBvcmRlcmVkX3NldCB0cmVlPGludCwgbnVsbF90eXBlLGxlc3M8aW50PiwgcmJfdHJlZV90YWcsdHJlZV9vcmRlcl9zdGF0aXN0aWNzX25vZGVfdXBkYXRlPgpjb25zdCBsbCBPTyA9IExMT05HX01BWCA7CmNvbnN0IGxsIE1vZD0xZTkrNzsKY29uc3QgaW50IE4gPSAxZTUrNSA7CnZvaWQgZmFzdCgpCnsKICAgIHN0ZDo6aW9zX2Jhc2U6OnN5bmNfd2l0aF9zdGRpbygwKTsKICAgIGNpbi50aWUoTlVMTCk7CiNpZm5kZWYgT05MSU5FX0pVREdFCiAgICBmcmVvcGVuKCJJbnB1dC50eHQiLCAiciIsIHN0ZGluKTsKICAgIGZyZW9wZW4oIk91dHB1dC50eHQiLCAidyIsIHN0ZG91dCk7CiNlbmRpZgp9CmludCBhWzVdIDsKbGwgeCA9MjMgOwpib29sIHNvbHZlKGludCBpZHggLCBsbCBzdW0pCnsKICAgIGlmIChpZHggPT0gNSkKICAgIHsKICAgICAgICByZXR1cm4gc3VtID09IHggOwogICAgfQogICAgcmV0dXJuIHNvbHZlKGlkeCsxICwgc3VtIC09YVtpZHhdKSB8fAogICAgICAgICAgIHNvbHZlKGlkeCsxICwgc3VtICs9YVtpZHhdKSB8fAogICAgICAgICAgIHNvbHZlKGlkeCsxICwgc3VtICo9YVtpZHhdKSAgIDsKfQppbnQgbWFpbigpIHsKICAgIGZhc3QoKTsKICAgIHdoaWxlICgxKQogICAgewogICAgICAgIGNpbj4+YVswXT4+YVsxXT4+YVsyXT4+YVszXT4+YVs0XSA7CiAgICAgICAgaWYgKCBhWzBdID09IDAgJiYgYVsxXSA9PSAwICYmIGFbMl0gPT0gMCAmJiBhWzNdID09IDAgJiYgYVs0XSA9PSAwICkgcmV0dXJuIDAgOwogICAgICAgIHNvcnQoYSxhKzUpIDsKICAgICAgICBib29sIG9rID0gZmFsc2UgOwogICAgICAgIGRvIHsKICAgICAgICAgICAgaWYgKHNvbHZlKDEsIGFbMF0pKQogICAgICAgICAgICB7CiAgICAgICAgICAgICAgICBvayA9IDEgOwogICAgICAgICAgICAgICAgYnJlYWsgOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIHdoaWxlIChuZXh0X3Blcm11dGF0aW9uKGEsYSs1KSkgOwogICAgICAgIGlmIChvaykKICAgICAgICAgICAgY291dCA8PCAiUG9zc2libGVcbiIgOwogICAgICAgIGVsc2UKICAgICAgICAgICAgY291dCA8PCAiSW1wb3NzaWJsZVxuIiA7CiAgICB9CiAgIHJldHVybiAwOwp9