eval'N,M,X,Y='+$<.read.split*?,;puts (X-Y)*(X+Y-1)%(2*M)<1?:YES: :NO