include
include
using namespace std; int x,y,q,w; int main() { cin>>x>>y>>q>>w; if (x-2==q && y+1==w) cout<<"YES"; else if (x-1==q && y+2==w) cout<<"YES"; else if (x+2==q && y+1==w) cout<<"YES"; else if (x+2==q && y-1==w) cout<<"YES"; else if (x+1==q && y-2==w) cout<<"YES"; else if (x-1==q && y-2==w) cout<<"YES"; else if (x-2==q && y-1==w) cout<<"YES"; else if (x-2==q && y+1==w) cout<<"YES"; else if (x+1==q && y+2==w) cout<<"YES"; else cout<<"NO"; return 0; }