w,h,c = gets.split a = (c==?W)?[?W,?B]:[?B,?W] puts h.to_i.times.map{|i| w.to_i.times.map{|j| a[(i+j)&1] }*"" }*"\n"