#include <bits/stdc++.h>
using namespace std;
struct Point {
  long long x, y;
  bool operator<(const Point &p) const {
    return (x < p.x || (x == p.x && y < p.y));
  }
  bool operator==(const Point &p) const { return (x == p.x && y == p.y); }
  bool operator!=(const Point &p) const { return (x != p.x || y != p.y); }
  friend ostream &operator<<(ostream &s, Point &p) {
    s << p.x << " " << p.y << endl;
    return s;
  }
  friend istream &operator>>(istream &s, Point &p) {
    s >> p.x >> p.y;
    return s;
  }
};
long long crossp(const Point &O, const Point &A, const Point &B) {
  return ((A.x - O.x) * (B.y - O.y) - (A.y - O.y) * (B.x - O.x));
}
vector<Point> revch(vector<Point> X) {
  vector<Point> Y;
  long long n = X.size();
  Y.push_back(X[0]);
  for (long long i = 0; i < n - 1; i++) Y.push_back(X[n - i - 1]);
  return Y;
}
vector<Point> hull(vector<Point> P) {
  long long n = P.size(), k = 0;
  vector<Point> X(2 * n);
  for (long long i = 0; i < n; i++) {
    while (k >= 2) {
      if (crossp(X[k - 2], X[k - 1], P[i]) < 0)
        k--;
      else
        break;
    }
    X[k++] = P[i];
  }
  for (long long i = n - 2, t = k + 1; i >= 0; i--) {
    while (k >= t) {
      if (crossp(X[k - 2], X[k - 1], P[i]) < 0)
        k--;
      else
        break;
    }
    X[k++] = P[i];
  }
  X.resize(k - 1);
  return X;
}
int main() {
  long long N;
  cin >> N;
  Point Z;
  vector<Point> p, q;
  for (long long i = 0; i < N; i++) {
    cin >> Z;
    p.push_back(Z);
    q.push_back(Z);
  }
  cin >> N;
  for (long long i = 0; i < N; i++) {
    cin >> Z;
    p.push_back(Z);
  }
  vector<Point> ans;
  sort(p.begin(), p.end());
  for (long long i = 0; i < p.size(); i++) {
    if (i + 1 < p.size()) {
      if (p[i] == p[i + 1]) {
        cout << "NO\n";
        return 0;
      }
    }
  }
  ans = hull(p);
  sort(ans.begin(), ans.end());
  sort(q.begin(), q.end());
  if (ans.size() != q.size()) {
    cout << "NO\n";
    return 0;
  }
  for (long long i = 0; i < ans.size(); i++) {
    if (ans[i] != q[i]) {
      cout << "NO\n";
      return 0;
    }
  }
  cout << "YES\n";
  return 0;
}
