w,h,c=gets.split;a=w.to_i.times.map{|i|'BW'[(i+c.ord)%2]}*'' h.to_i.times{|i|puts [a,a.tr('BW','WB')][i%2]}