template originalSource() = # {.checks: off.} include cplib/tmpl/citrus var n = input(int) var a = newSeq[int]() var b = newSeq[int]() if n % 3 == 1: a.add(9999) if n % 3 == 2: a.add(@[9999, 9996]) for i in 0..10000: if a.len < n and i % 3 == 1: a.add(i) if b.len < n and i % 3 == 0: b.add(i) a.sort b.sort while a.sum < b.sum: for i 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..