H,W=map(int,input().split()) for i in range(H): tmp=[] if i%2==0: s="XXOO" else: s="OOXX" for w in range(W): tmp.append(s[w%4]) print("".join(tmp))