//good->great->perfect->miss #include #include #define rep(i, n) for(i = 0; i < n; i++) using namespace std; int a, b, c, d; vector vec; int main() { cin >> a >> b >> c >> d; if (d >= 10) { cout << "Impossible" << endl; return 0; } cout << "Possible" << endl; int i; rep(i, b) vec.push_back(50); rep(i, a) vec.push_back(100); int ans = 0; rep(i, vec.size()) { ans += vec[i] * (1 << (i / 100)); } cout << ans << endl; return 0; }