import sequtils,strutils,algorithm,math,sugar,macros,strformat proc getchar_unlocked():char {. importc:"getchar_unlocked",header: "" .} proc scan(): int = while true: var k = getchar_unlocked() if k < '0' or k > '9': break else: result = 10 * result + k.ord - '0'.ord let h = scan() let w = scan() var S = newSeqWith(w,newSeqWith(h,false)) var blockSum = 0 for y in 0..= w or y + sy >= h : return if not S[x+sx][y+sy]: return already[x+sx][y+sy] = true quit "YES",0 for x in 0..