A colony of bacteria starts with 1000 bacteria. Every hour, the number of bacteria doubles. However, every two hours, 100 bacteria are removed from the colony for research purposes. How many bacteria will there be in the colony after 5 hours? Let's think step by step and output the final answer within \boxed{}.
user