#include <bits/stdc++.h>
using namespace std;
pair<double, double> operator-(pair<double, double> A, pair<double, double> B) {
  return make_pair(A.first - B.first, A.second - B.second);
}
double operator*(pair<double, double> A, pair<double, double> B) {
  return A.first * B.second - A.second * B.first;
}
int n, m, i, l, r, mid;
pair<double, double> a[200000], t;
string DO() {
  cin >> n;
  for (i = 1; i <= n; ++i) cin >> a[i].first >> a[i].second;
  for (cin >> m; m--;) {
    for (cin >> t.first >> t.second, l = 2, r = n, mid = (l + r) / 2; l < r;
         mid = (l + r) / 2)
      if ((a[mid] - a[1]) * (t - a[1]) >= 0)
        r = mid;
      else
        l = mid + 1;
    if (l < 3 || (a[n] - a[1]) * (t - a[1]) <= 0 ||
        (a[l - 1] - a[l]) * (t - a[l]) <= 0)
      return "NO";
  }
  return "YES";
}
int main() {
  cout << DO() << endl;
  return 0;
}
