import sequtils, strutils, math, algorithm var n,m:int a:seq[int] cards:seq[int] = @[] (n, m) = readLine(stdin).split.map(parseInt) a = readLine(stdin).split.map(parseInt) for i in 0..