import sequtils, strutils proc solve() = var N, M, K: int (N, M, K) = stdin.readLine.split.map(parseInt) var A = mapIt(0..