N = gets.to_i S = Array.new(N) { gets } count = S.sum { |row| row.count(?#) } puts (N.odd? || count.even?) ? "Yes" : "No"