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