import sequtils,strutils,math,algorithm type yuusha = tuple[maxhp, hp : int] var N = stdin.readline.parseInt A = stdin.readline.split.map(parseInt) hp = 100 maxhp = 100 dp : array[1 shl 16, yuusha] A.sort(system.cmp) dp[0] = (100,100) for i in 0..<(1 shl N): if dp[i].hp <= 0: continue for k in 0..