n,m = map(int,input().split()) x,y = map(int,input().split()) def pos(x): x = (x-1)%(2*m) if x < m: return m else: return 2*m-x print("YES" if pos(x)==pos(y) else "NO")