#include using namespace std; int main() { int A, B, C, D; cin >> A >> B >> C >> D; if( D >= 10 ) { cout << "Impossible" << endl; } else { int ans = 0; int combo = 0; while( B > 0 ) { int n = min( 100, B ); ans += 50 * pow( 2, combo / 100 ) * n; combo += n; B -= n; } int rest = 100 - combo % 100; while( A > 0 ) { int n = min( rest, A ); ans += 100 * pow( 2, combo / 100 ) * n; combo += n; A -= n; rest = 100; } cout << "Possible " << endl; cout << ans << endl; } }