h,w=map(int,input().split()) t='XXOO'*w for i in range(h): l=(i%2)*2 print(t[l:l+w])