p=24604146,j,c[];main(h){for(;p;)!j--?p/=j=9,c[p%9]=h^=3:printf(" %c %s"," OX"[c[j]],j%3?"|":j?"\n---+---+---\n":"\n\n");}