eval'w=%d;%d.times{|i|puts ("BW"*w)[i+%p.ord&1,w]}'%gets.split