import strutils, sequtils, math, algorithm proc solve() = var N, P: int (N, P) = stdin.readLine.split.map(parseInt) var a, b, c = newSeq[int](N) for i in 0..