R=range J=lambda:list(map(int,input().split())) H,W=J() for i in R(H): s=[] for j in R(W): s+=["OX"[i//2%2==j%2]] print(''.join(s))