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