Gerald bought two very rare paintings at the Sotheby's auction and he now wants to hang them on the wall. For that he bought a special board to attach it to the wall and place the paintings on the board. The board has shape of an *a*<sub class="lower-index">1</sub> × *b*<sub class="lower-index">1</sub> rectangle, the paintings have shape of a *a*<sub class="lower-index">2</sub> × *b*<sub class="lower-index">2</sub> and *a*<sub class="lower-index">3</sub> × *b*<sub class="lower-index">3</sub> rectangles.

Since the paintings are painted in the style of abstract art, it does not matter exactly how they will be rotated, but still, one side of both the board, and each of the paintings must be parallel to the floor. The paintings can touch each other and the edges of the board, but can not overlap or go beyond the edge of the board. Gerald asks whether it is possible to place the paintings on the board, or is the board he bought not large enough?
The first line contains two space-separated numbers *a*<sub class="lower-index">1</sub> and *b*<sub class="lower-index">1</sub> — the sides of the board. Next two lines contain numbers *a*<sub class="lower-index">2</sub>, *b*<sub class="lower-index">2</sub>, *a*<sub class="lower-index">3</sub> and *b*<sub class="lower-index">3</sub> — the sides of the paintings. All numbers *a*<sub class="lower-index">*i*</sub>, *b*<sub class="lower-index">*i*</sub> in the input are integers and fit into the range from 1 to 1000.
#include<bits/stdc++.h>

#define print printf

using namespace std;

int main()
{
	ios::sync_with_stdio(false);
	int a1, b1, a2, b2, a3, b3;
	cin >> a1 >> b1 >> a2 >> b2 >> a3 >> b3;
	if(
		   (a2+a3 <= a1 && b2 <= b1 && b3 <= b1)
		|| (a2+b3 <= a1 && b2<= b1 && a3 <= b1)
		|| (a2+a3 <= b1 && b2<= a1 && b3 <=a1)
		|| (a2+b3 <= b1 && b2 <= a1 && a3 <= a1)
		|| (a2<= a1 && a3 <= a1 && b2 + b3 <= b1)
		|| (a2 <= a1 && b3 <= a1 && b2+a3 <= b1)
		|| (a2 <= b1 && a3 <= b1 && b2+ b3 <=a1)
		|| (a2<= b1 && b3 <= b1 && b2 + a3 <= a1)
	)
		cout <<"YES"<< endl;
	else
		cout << "NO"<< endl;
	return 0;
}
