while true
    h,w=gets.split.map{|x| x.to_i}
    break if h==0 && w==0

    h.times{|a|
       w.times{|b|
          if(a+b)%2==0
             print"#"
          else
             print"."
          end
       }
       puts""
    }
    puts""
end