#include <iostream>

using namespace std; 

bool skf(int q, int w, int e, int r){
	bool t;
	if ((q<=e && w<=r) || (q<=r && w<=e)) t = true;
	else t = false;
	return t;
}

int main(){
	int a, b, c, x, y;
	cin >> a >> b >> c >> x >> y;
	if (skf(a, b, x, y) || skf(b, c, x, y) || skf(a, c, x, y)) cout << "YES";
	else cout << "NO";
return 0;

}