#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......
		string cancover(rectangle &c)
		{
			string a;
			int max1=getlength()>getwidth()?getlength():getwidth();
			int min1=getlength()<getwidth()?getlength():getwidth();
			int max2=c.getlength()>c.getwidth()?c.getlength():c.getwidth();
			int min2=c.getlength()<c.getwidth()?c.getlength():c.getwidth();
			if(max1>=max2&&min1>=min2)
			a="yes";
			else 
			a="no";
			return a;
		}
};
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;
}