import strutils, sequtils, math proc solve() = var N = stdin.readLine.parseInt D = stdin.readLine.split.map(parseInt) dp: array[2^17, int] dp[0] = 100 for S in 0..<2^N: if dp[S] == 0: continue var hp_max = 100 for i in 0..