R=range H,W=map(int,input().split()) for i in R(H):print(''.join("OX"[i>>1^j&1]for j in R(W)))