#include <sstream> //string stream 便利! #include<string> #include<iostream> #include<utility> //pair #include <vector> // 可変長配列 #include <algorithm> // swap,sort,binary_search #include <functional> // 昇順sortに使う greaterが入ってる。 sortの三番目の引数。 #include <map> //map #include<set> //set #include<queue> //キュー #include<list> //list #include<cmath> #include<cassert> #include <numeric> #include<tuple> #include<iomanip> typedef long long ll; #define ARRAY_LENGTH(array) (sizeof(array) / sizeof(array[0])) using namespace std; void omajinai() { cin.tie(0); ios::sync_with_stdio(false); } map<char,char> m; int main(){ ll n , m , x, y ; cin>>n>>m>>x>>y; ll cx = x%(2*m); ll cy = y%(2*m); if(cx == 0) cx = 2*m; if(cy==0) cy = 2*m; if(cx>m) cx = 2*m + 1 - cx ; if(cy>m) cy = 2*m + 1 - cy ; string ans = (cx == cy) ? "YES" : "NO"; cout<<ans<<endl; }