/*************************************************************************
> File Name: code/cf/#313/B.cpp
> Author: 111qqz
> Email: rkz2013@126.com
> Created Time: Wed 22 Jul 2015 09:52:54 PM CST
************************************************************************/
1#include<iostream>
2#include<iomanip>
3#include<cstdio>
4#include<algorithm>
5#include<cmath>
6#include<cstring>
7#include<string>
8#include<map>
9#include<set>
10#include<queue>
11#include<vector>
12#include<stack>
13#define y0 abc111qqz
14#define y1 hust111qqz
15#define yn hez111qqz
16#define j1 cute111qqz
17#define tm crazy111qqz
18#define lr dying111qqz
19using namespace std;
20#define REP(i, n) for (int i=0;i<int(n);++i)
21typedef long long LL;
22typedef unsigned long long ULL;
1 int a1,b1,a2,b2,a3,b3;
2bool judge (int x2,int y2,int x3,int y3)
3{
4 if (x2<=a1&&x3<=a1&&y2+y3<=b1)
5 return true;
6 if (y2<=b1&&y3<=b1&&x2+x3<=a1)
7 return true;
8 return false;
9}
10int main()
11{
12 cin>>a1>>b1>>a2>>b2>>a3>>b3;
13 if (judge(a2,b2,a3,b3)||judge(b2,a2,a3,b3)||judge(b2,a2,b3,a3)||judge(a2,b2,b3,a3))
14 {
15 puts("YES");
16 }
17 else
18 {
19 puts("NO");
20 }
return 0;
}