#include<stdio.h>
int main()
{
    int a,b,c,d,p,q;
    scanf("%d %d %d %d",&a,&b,&c,&d);
    p=a-b;
    q=c-d;
    if(q==0)
    {
        printf("No\n");
    }
    else
    {
        printf("Yes\n");
    }
}
