H,W=map(int,input().split()) S="XO" for i in range(H): for j in range(W): print(S[(i//2+j)%2],end="") print()