A bookstore initially has 500 books in stock. Due to a clearance sale, the store decided to reduce the number of books by 30%. After the sale, the store received a new shipment that increased the remaining stock by 50%. How many books are in the bookstore after the shipment? Let's think step by step and output the final answer within \boxed{}.
user