pattern = %w(# .)
while true
  h, w = gets.chomp.split(/\s/).map(&:to_i)
  break if h == 0 && w == 0
  h.times do |i|
    w.times do |j|
      print pattern[(j + (i % 2)) %2]
    end
    puts ""
  end
  puts ""
end