H,W=map(int,input().split()) S=["XOO", "OXX", "OXO"] for i in range(H): for j in range(W): print(S[i%3][j%3],end="") print()