#include<bits/stdc++.h>
using namespace std;
class rectangle{
private:
int length,width;
public:
void set(int x,int y){
length=x;
width=y;
}
int getlength(){
return length;
}
int getwidth(){
return width;
}
int area(){
return length*width;
}
// write your code here......
std::string cancover(rectangle b){
int l_1 = std::max(this->getlength(), this->getwidth());
int w_1 = std::min(this->getlength(), this->getwidth());
int l_2 = std::max(b.getlength(), b.getwidth());
int w_2 = std::min(b.getlength(), b.getwidth());
if (l_1>=l_2 && w_1>= w_2){
return "yes";
}else{
return "no";
}
}
};
int main(){
int l1,w1,l2,w2;
cin>>l1>>w1>>l2>>w2;
rectangle a,b;
a.set(l1,w1);
b.set(l2,w2);
cout<<a.cancover(b);
return 0;
}