t="1|9|407|2|905|6|3\n"for i=1,7 do t=t:gsub(0,"\n---+---+---\n"):gsub(i,i%2<1 and" O "or" X ")print((t:gsub("%d"," ")))end