h,w,n,k=gets.split.map &:to_i;p (h+w−2)%n+1==k ?:YES: :NO