#include int main() { long h,w,n,k; std::cin >> h >> w >> n >> k; long a = ((h-1)%n+(w-1)%n+1)%n; std::cout << ((a==k)?"YES":"NO") << std::endl; }