package main import "fmt" func main() { var ( score = 0 bonus = 1 pf, gt, gd, ms int ) fmt.Scan(&pf, >, &gd, &ms) if ms >= 10 { fmt.Println("Impossible") return } for i := 1; ; i++ { switch { case gt == 0 && pf == 0: fmt.Printf("Possible\n%d", score) return case gt != 0: score += 50 * bonus gt-- case pf != 0: score += 100 * bonus pf-- } if i%100 == 0 { bonus *= 2 } } }