H,W=map(int,input().split()) for i in range(H): print(*["OX"[(i//2^j)%2] for j in range(W)],sep="")