template originalSource() = # {.checks: off.} include cplib/tmpl/citrus var n, a, b = input(int) var dp = newSeqWith(n+1, newSeqWith(a+1, INFL)) dp[0][0] = 0 for _ in 0..= z.len: break\x0A if (f and (1 shl b)) == 0:\x0A s.add(z[i])\x0A inc i\x0A else:\x0A let d = ord(z[i])*256+ord(z[i+1])\x0A let n = ord(z[i+2])+3\x0A i += 3\x0A for j in 0..