#include <bits/stdc++.h>
using namespace std;

int main() {
  long long h,w,n,k;
  cin >> h >> w >> n >> k;
  if(((h+w-2)%n)+1==k) cout << "YES" << endl;
  else cout << "NO" << endl;
  return 0;
}