w,h,c=map(str,input().split()) w=int(w);h=int(h) d='B' if c=='W' else 'W' for i in range(h): s='' for j in range(w): s+=d if (i+j)&1 else c print(s)