#include <iostream> using namespace std; int main(){ int x1,y1,x2,y2; cin>>x1>>y1>>x2>>y2; int length=y2-y1; int wide=x2-x1; if (length==wide){ cout<<"YES"<<endl; }else{ cout<<"NO"<<endl; } }