N,M=map(int,input().split())
X,Y=map(int,input().split())
X-=1
Y-=1
M*=2
X%=M
Y%=M
if X==Y or X+Y==M-1 :
    print('YES')
else :
    print('NO')