# frozen_string_literal: true h, w, n, k = gets.chomp.split.map(&:to_i) squares = h * w squares %= n if squares < k - 1 puts 'YES' else puts 'NO' end