stdin = input() perfect,great,good,miss = stdin.split(" ") cnt = 0 score = 0 dic = {1:100,2:200,4:300,8:400,16:500,32:600,64:700,128:800} if int(miss) >= 10: print("Impossible") else: for cate,point in {great:50,perfect:100}.items(): for i in range(1,int(cate) + 1): cnt += 1 for rate,line in dic.items(): if cnt <= line and cnt > line-100: score += rate * point print("Possible") print(score)