class RobotMove
  def run
    loop do
      @arr = Array.new(21).map! { Array.new(21,0) }

      number = gets.to_i
      break if number == 0
      
      set(number)
      
      move
      
      puts (@arr.select { |x| x.include?(1) == true }.size == 0)? "Yes": "No"
    end
  end
  
  def set(number)
    number.times do line = gets.split.map(&:to_i); @arr[line[0]][line[1]] = 1 end
  end
  
  def move
    x = 10
    y = 10
    gets.to_i.times do line = gets.split
      line[1].to_i.times do
        case line[0]
          when "N"; y+=1
          when "E"; x+=1
          when "S"; y-=1
          when "W"; x-=1
        end
        @arr[x][y] = 0
      end
    end  
  end
end

RobotMove::new.run()