#include <bits/stdc++.h>

using namespace std;
#define ll long long

int main()
{
    int n,m,t;
    while(scanf("%d%d",&n,&m)!=EOF)
    {
        n+=m;
        if(n>=15&&m>=8)t=1;
        else if(n>=10&&m>=3)t=2;
        else if(n>=3)t=3;
        else t=4;
        printf("%d\n",t);
    }
}

#include <iostream>
using namespace std;
int a,b,c,d,e;
int main(void){
    cin>>a>>b>>c>>d;
    if((a+b+c+d)%2==1){cout<<"No"<<endl;return 0;}
    e=(a+b+c+d)/2;
    if(a+b==e)cout<<"Yes"<<endl;
    else if(a+c==e)cout<<"Yes"<<endl;
    else if(a+d==e)cout<<"Yes"<<endl;
    else if(b+c==e)cout<<"Yes"<<endl;
    else if(b+d==e)cout<<"Yes"<<endl;
    else if(d+c==e)cout<<"Yes"<<endl;
    else if(a==e)cout<<"Yes"<<endl;
    else if(b==e)cout<<"Yes"<<endl;
    else if(c==e)cout<<"Yes"<<endl;
    else if(d==e)cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
}
