# frozen_string_literal: true def solve ((H + W - 2) % N) + 1 == K ? 'YES' : 'NO' end H, W, N, K = gets.split.map(&:to_i) puts solve