import Data.Bool main = do [x,y] <- map read . words <$> getLine getLine as <- map read . words <$> getLine putStrLn $ bool "NO" "YES" $ koba x y as koba x y as = all ((x/y) >=) $ zipWith (/) as (tail as)