main = do [a, b] <- map read . words <$> getLine putStrLn $ if a + 1 <= b then "YES" else "NO" print $ abs (a + 1 - b)