import qualified Data.Set as S
main = do
 aList <- map read . words . (flip (!!)) 1 . lines <$> getContents :: IO [Int]
 putStr $ if ((length (S.fromList aList)) == (length aList)) then "Yes" else "No"