#include<bits/stdc++.h>

using namespace std;

int main() {
 
 priority_queue<int > p1,p2;
 int a,b,c,d;
 cin>>a>>b>>c>>d;
 
 p1.push(a);p1.push(b);
 p2.push(c);p2.push(d);
 
 if((a == 0 && b == 0))
 {
     cout<<"No\n";
     return 0 ;
 }
 
 int f1=0,f2=0;
 bool turn =true;
 while(!p1.empty() || !p2.empty())
 {
     int po = p1.top();
     int qo = p2.top();
     if(turn == true)
     {
         if(po >= qo)
         {
             int diff = po-qo;
             p1.pop();
             p1.push(diff);
             p2.pop();
             p2.push(0);
         }
         else
         {
             int diff = po-qo;
             p2.pop();
             p2.push(diff);
             p1.pop();
             p1.push(0);
         }
         turn  = false;
     }
     else if(turn == false)
     {
         if(qo >= po)
         {
             int diff = qo-po;
             p2.pop();
             p2.push(diff);
             p1.pop();
             p1.push(0);
         }
         else
         {
             int diff = po-qo;
             p1.pop();
             p1.push(diff);
             p2.pop();
             p2.push(0);
         }
         turn =true;
     }
     if(p1.top() == 0)
     {
         f1=1;
         break;
     }
     if(p2.top() == 0)
        {
            f2=1;
            break;
        }
     
 }
 if(f1)
 cout<<"No\n";
else
    cout<<"Yes\n";
    
 
}