class Challenge
	def go
		loop do
			@array = Array.new(21).map! { Array.new(21,0) }
			number = gets.to_i
			break if number == 0
			set(number)
			move
			puts (@array.select { |x| x.include?(1) == true }.size == 0)? "Yes" : "No"
		end
	end

	def set(number)
		number.times do 
			line = gets.split.map(&:to_i)
			@array[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
				@array[x][y] = 0;
			end
		end
	end
end
Challenge::new.go()