#include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define Would #define you int a, b, c, d; int main() { cin >> a >> b >> c >> d; if (d >= 10) { cout << "Impossible" << endl; return 0; } cout << "Possible" << endl; int ans = 0, mon = a + b, cou = 1; while (mon > 0) { int n = min(mon, 100), m = min(b, 100); ans += n * 100 * cou; mon -= n; ans -= m * 50 * cou; b -= m; cou *= 2; } cout << ans << endl; }