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