#include <bits/stdc++.h>
using namespace std;
int k, q, top, l, r, sg, sd, a, b;
pair<int, int> t[100007], p1, p2, x;
vector<pair<int, int> > gora_otoczki, dol_otoczki;
long long kat(pair<long long, long long> a, pair<long long, long long> b,
              pair<long long, long long> c) {
  return (b.second - a.second) * (c.first - a.first) -
         (b.first - a.first) * (c.second - a.second);
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cin >> k;
  for (int i = 0; i < k; i++) cin >> t[i].first >> t[i].second;
  sort(t, t + k);
  gora_otoczki.push_back(t[0]);
  gora_otoczki.push_back(t[1]);
  top = 1;
  for (int i = 2; i < k; i++) {
    while (gora_otoczki.size() >= 2 &&
           kat(gora_otoczki[top - 1], gora_otoczki[top], t[i]) <= 0) {
      gora_otoczki.pop_back();
      top--;
    }
    gora_otoczki.push_back(t[i]);
    top++;
  }
  for (int i = 0; i < k / 2; i++) swap(t[i], t[k - 1 - i]);
  dol_otoczki.push_back(t[0]);
  dol_otoczki.push_back(t[1]);
  top = 1;
  for (int i = 2; i < k; i++) {
    while (dol_otoczki.size() >= 2 &&
           kat(dol_otoczki[top - 1], dol_otoczki[top], t[i]) <= 0) {
      dol_otoczki.pop_back();
      top--;
    }
    dol_otoczki.push_back(t[i]);
    top++;
  }
  for (int i = 0; i < dol_otoczki.size() / 2; i++)
    swap(dol_otoczki[i], dol_otoczki[dol_otoczki.size() - 1 - i]);
  sg = gora_otoczki.size();
  sd = dol_otoczki.size();
  l = gora_otoczki[0].first;
  r = gora_otoczki[sg - 1].first;
  cin >> q;
  for (int i = 0; i < q; i++) {
    cin >> a >> b;
    x = {a, b};
    if (a == r || a == r) {
      cout << "NO";
      return 0;
    } else if (a > l && a < r) {
      auto it = lower_bound(gora_otoczki.begin(), gora_otoczki.end(), x);
      if (it->first == a) {
        p1 = *it;
        ++it;
        p2 = *it;
      } else {
        p2 = *it;
        --it;
        p1 = *it;
      }
      if (kat(p1, p2, x) <= 0) {
        cout << "NO";
        return 0;
      }
      it = lower_bound(dol_otoczki.begin(), dol_otoczki.end(), x);
      if (it->first == a) {
        p1 = *it;
        ++it;
        p2 = *it;
      } else {
        p2 = *it;
        --it;
        p1 = *it;
      }
      if (kat(p2, p1, x) <= 0) {
        cout << "NO";
        return 0;
      }
    } else {
      cout << "NO";
      return 0;
    }
  }
  cout << "YES";
  return 0;
}
