A book fair sold 496 books. The primary students bought 1/4 of the books, intermediate students bought 1/8 of the books, and the upper students bought 1/16 of the books. Teachers bought the rest. How many books did the teachers buy?