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 == m - k