import streams, input_helpers, algorithm, sequtils proc part1*(s: Stream): int = var d1 = 0 var d3 = 1 var nums = @[0].concat(toSeq(s.asInts).sorted) for i in 1..