#include<stdio.h>
int main()
{
    int A,B,C,D ;
    scanf("%d%d%d%d", &A,&B,&C,&D);
    if (Takahashi will win)
    {
    printf("YES\n");
    }
    else
    {
       printf("NO\n");
    }
    return 0;