by@KarakasaDcFd
TLE
SHELL=bash a: @read h w<<<'$(STDIN:\n= )';for((;;)){ printf \\$$[++i%w/2*c?40:i>w?c=--h-1,i=0,12:52];}
26 19