import sys def next_str() -> str: result = "" while True: tmp = sys.stdin.read(1) if tmp.strip() != "": result += tmp elif tmp != '\r': break return result def next_int() -> int: return int(next_str()) def main() -> None: score = 0 bonus = 1 pf, gt, gd, ms = [next_int() for _ in range(4)] if ms >= 10: print("Impossible") return for i in range(1, sys.maxsize): if gt == 0 and pf == 0: break elif gt != 0: score += 50 * bonus gt -= 1 elif pf != 0: score += 100 * bonus pf -= 1 if i % 100 == 0: bonus *= 2 print("Possible\n" + str(score)) if __name__ == '__main__': main()