o,p="X " exec'o=[p*m+r+p+-~-m*r for m in[0,1,0]for r in o];p*=3;'*4 print"\n".join(o)