main = getLine >>= putStrLn . show' . game . map read . words where show' p = if p then "YES" else "NO" game [h,w,m,k] | mod (h*w) m == 0 = m == k | otherwise = mod (h*w) m == k