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