main = getLine >>= putStrLn . solve . map read . words solve :: [Integer] -> String solve [h, w, n, k] | j == 0 && n == k = "YES" | j == k = "YES" | otherwise = "NO" where j = h * w `mod` n