loop do
h, w = gets.split.map(&:to_i)
break if h == 0 && w == 0
(1..h).each do |i|
    (1..w).each do |j|
        if (i + j) % 2 == 0
            print '#'
        else
            print '.'
        end
    end
    puts
end
puts
end
