num = gets.chomp.split.map(&:to_i) squares = num[0] * num[1] mod = squares % num[2] if num[2] == num[3] && mod == 0 puts "YES" elsif mod != num[3] puts "NO" end