import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long H = sc.nextLong(); long W = sc.nextLong(); long N = sc.nextLong(); long K = sc.nextLong(); long L = (H+W-2)%N+1; if(K==L){ System.out.println("YES"); }else{ System.out.println("NO"); } } }