#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e3 + 10;
int main() {
  int n, m, x1, y1, x2, y2;
  while (~scanf("%d %d", &n, &m)) {
    scanf("%d %d %d %d", &x1, &y1, &x2, &y2);
    if (n < m) swap(n, m);
    if (x1 < y1) swap(x1, y1);
    if (x2 < y2) swap(x2, y2);
    if (x1 + x2 <= n && y1 <= m && y2 <= m)
      puts("YES");
    else if (y1 + y2 <= m && x1 <= n && x2 <= n)
      puts("YES");
    else if (x1 + y2 <= n && y1 <= m && x2 <= m)
      puts("YES");
    else if (x2 + y1 <= n && y2 <= m && x1 <= m)
      puts("YES");
    else if (y1 + x2 <= m && x1 <= n && y2 <= n)
      puts("YES");
    else if (y2 + x1 <= m && x2 <= n && y1 <= n)
      puts("YES");
    else if (y1 + y2 <= n && x1 <= m && x2 <= m)
      puts("YES");
    else if (x1 + x2 <= m && y1 <= n && y2 <= n)
      puts("YES");
    else
      puts("NO");
  }
}
