main::IO()
main = do
    _ <- getLine
    s <- words <$> getLine
    putStrLn $ if checkunique s then "NO" else "YES"
    
checkunique::[String]->Bool
checkunique [] = False
checkunique (x:xs) = if x `elem` xs then True else checkunique xs