A factory produces 500 widgets every hour. After operating for 7 hours, the factory shuts down for maintenance for 2 hours, and during this time, 150 defective widgets are removed. How many widgets are produced in total after 9 hours, including the maintenance period? Let's think step by step and output the final answer within \boxed{}.
user