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