#include <bits/stdc++.h>
using namespace std;
struct pts {
  int x, y;
  bool operator<(const pts& a) const { return x == a.x ? y < a.y : x < a.x; }
} o[9];
int minx, miny, maxx, maxy;
int main() {
  ios::sync_with_stdio(false);
  minx = miny = 101;
  maxx = maxy = -101;
  for (int i = 0; i < 4; ++i)
    cin >> o[i].x >> o[i].y, maxx = max(maxx, o[i].x), minx = min(minx, o[i].x),
                             maxy = max(maxy, o[i].y), miny = min(miny, o[i].y);
  for (int i = 4; i < 8; ++i) cin >> o[i].x >> o[i].y;
  sort(o + 4, o + 8);
  for (int i = minx; i <= maxx; ++i) {
    for (int j = miny; j <= maxy; ++j)
      if (((o[5].x + o[5].y <= i + j) && (i + j <= o[7].x + o[7].y)) &&
          ((o[6].y - o[6].x >= j - i) && (o[7].y - o[7].x <= j - i))) {
        cout << "yes" << endl;
        return 0;
      }
  }
  cout << "no" << endl;
  return 0;
}
