import sequtils proc getchar_unlocked():char {. importc:"getchar_unlocked",header: "" .} proc scan[T](): T = while true: var k = getchar_unlocked() if k < '0' or k > '9': break else: result = 10 * result + k.ord.T - '0'.ord.T let n = scan[int32]() let k = scan[int]() var D :array[200_010,int32] for i in 0.. k : echo "NO" elif (k-swapTime) mod 2 == 0: echo "YES" else: echo "NO"