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