while (a,b = gets.split.map(&:to_i)) != [0,0] 
  for i in 0..(a-1)
    for j in 0..(b-1)
      if (i+j)%2 == 0
        print "#"
      else 
        print"."
      end
    end
    puts ""
  end
  puts ""
end

