#include <iostream>
using namespace std;
bool skf(int q, int w, int e, int r){
return ((q<=e && w<=r) || (q<=r && w<=e));
}
int main (){
int a, b, c, x, y;
cin >> a >> b >> c >> x >> y;
(skf(a, c, x, y) or skf(b, c, x, y) or skf(a, b, x, y)) && cout << "YES";
!(skf(a, c, x, y) or skf(b, c, x, y) or skf(a, b, x, y)) && cout << "NO";
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOyAKCmJvb2wgc2tmKGludCBxLCBpbnQgdywgaW50IGUsIGludCByKXsKCXJldHVybiAoKHE8PWUgJiYgdzw9cikgfHwgKHE8PXIgJiYgdzw9ZSkpOyAKfQoKaW50IG1haW4gKCl7IAoJaW50IGEsIGIsIGMsIHgsIHk7IAoJY2luID4+IGEgPj4gYiA+PiBjID4+IHggPj4geTsgCgkoc2tmKGEsIGMsIHgsIHkpIG9yIHNrZihiLCBjLCB4LCB5KSBvciBza2YoYSwgYiwgeCwgeSkpICYmIGNvdXQgPDwgIllFUyI7CgkhKHNrZihhLCBjLCB4LCB5KSBvciBza2YoYiwgYywgeCwgeSkgb3Igc2tmKGEsIGIsIHgsIHkpKSAmJiBjb3V0IDw8ICJOTyI7CglyZXR1cm4gMDsgCn0=