sum((sum(printf(?t,if j=i or j=a-i+1 then"X"else" "),j,1,max(i,a-i+1)),newline()),i,1,a:?read());