w,h,c = raw_input().split() w,h = map(int,[w,h]) a = "BW" if c == "B" else "WB" s = "" for y in xrange(h): s = "" for x in xrange(w): s += a[(y+x)%2] print s