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

h.times{
   w.times{
   if (w%2 == 0 && h%2 == 1) then
       print "."
    elsif print "#"
       end}
puts " "
       }

end
       