# -*- coding: utf-8 -*- """ No.396 クラス替え https://yukicoder.me/problems/no/396 """ import sys from sys import stdin input = stdin.readline def check_class(a, b): res = -1 q, r = divmod(a, b) if q % 2 == 0: if r == 0 or r == 1: res = 1 else: res = r else: if r == 0 or r == 1: res = b else: res = b - r + 1 return res def solve(M, X, Y): hanako = check_class(X, M) taro = check_class(Y, M) if hanako == taro: return 'YES' else: return 'NO' def main(args): N, M = map(int, input().split()) X, Y = map(int, input().split()) ans = solve(M, X, Y) print(ans) if __name__ == '__main__': main(sys.argv[1:])