<|im_start|>system
You are a helpful assistant. You first think about the reasoning process in the mind and then provide the user with the answer. You should try to truely solve the question by yourself without cheating.  <|im_end|>
<|im_start|>user
 During the summer vacation, Xiao Ming wrote some characters at home. On the first day, he wrote 50 fewer characters than half of the total number of characters. On the second day, he wrote 20 fewer characters than half of the remaining number of characters. On the third day, he wrote 10 more characters than half of the remaining number of characters. On the fourth day, he wrote 60 characters, and 40 characters remained to be written to complete the task. How many characters does Xiao Ming have to write in total during the vacation? Show your work in <think> </think> tags. And return the final answer in <answer> </answer> tags.<|im_end|>
<|im_start|>assistant
Let me solve this step by step.
<think>
user
700
During the summer vacation, Xiao Ming wrote some characters at home. On the first day, he wrote 50 fewer characters than half of the total number of characters. On the second day, he wrote 20 fewer characters than half of the remaining number of characters. On the third day, he wrote 10 more characters than half of the remaining number of characters. On the fourth day, he wrote 60 characters, and 40 characters remained to be written to complete the task. How many characters does Xiao Ming have to write in total during the vacation?
test