#include<stdio.h>
int main()
{
  int t,t1,a,b,c,d;
  scanf("%d%d%d%d",&a,&b,&c,&d);
 while(t!=0||t1!=0)
 {
  t=a-b;
  a=t;
   t1 = c-d;
  c=t1;
  if(t==0)
{
    printf("N0");
return 0;
}
if(t1==0)
 {
  printf("Yes");
 return 0;
 }

 }

 }
