The library has 512 bookshelves. On each shelf, there are 14 books. So, the total number of books in the library is .