H,W=map(int,input().split()) ans=[["O" for _ in range(W)] for _ in range(H)] for h in range(H): w=0 if h%2==0 else 1 while w