a, b, c = gets.split
a = a.to_i
b = b.to_i
c = c <=> "B"
s = ""
d = %w{B W}
b.times do |i|
  a.times do |j|
    s << d[(i + j + c)%2]
  end
  s << $/
end
puts s