#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;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsgCgpib29sIHNrZihpbnQgcSwgaW50IHcsIGludCBlLCBpbnQgcil7Cglib29sIHQ7CglpZiAoKHE8PWUgJiYgdzw9cikgfHwgKHE8PXIgJiYgdzw9ZSkpIHQgPSB0cnVlOwoJZWxzZSB0ID0gZmFsc2U7CglyZXR1cm4gdDsKfQoKaW50IG1haW4oKXsKCWludCBhLCBiLCBjLCB4LCB5OwoJY2luID4+IGEgPj4gYiA+PiBjID4+IHggPj4geTsKCWlmIChza2YoYSwgYiwgeCwgeSkgfHwgc2tmKGIsIGMsIHgsIHkpIHx8IHNrZihhLCBjLCB4LCB5KSkgY291dCA8PCAiWUVTIjsKCWVsc2UgY291dCA8PCAiTk8iOwpyZXR1cm4gMDsKCn0=