while true
  h,w = gets.split.map(&:to_i)
  break if h == 0 && w == 0

  h.times do |i|
    case i + 1
    when proc(&:odd?)
      puts "#."*w
    when proc(&:even?)
      puts ".#"*w
    end
  end
  print "\n"
end