import sequtils template times*(n:int,body) = (for _ in 0.." .} proc putchar_unlocked(c:char){.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 r = scan() let k = scan() let h = scan() let w = scan() var C = newSeqWith(h,newSeq[bool](w)) for y in 0..= 180: c = C[h-y-1][w-x-1] k.times: putchar_unlocked(if c : '#' else: '.') if r in [0,180]: for y in 0..