Padraig is estimating the number of books in a library. The library has 8 floors, each of which has 22 large bookshelves and 14 small bookshelves. Each large bookshelf has 16 rows of books, and each small bookshelf has 4 rows of books.
If each row of books contains 54 books on average, how many books are in the library?