<|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
 Using each of the eight digits  $1,3,4,5,6,7,8$  and  $9$  exactly once, a three-digit number  $A$ , two two-digit numbers  $B$  and  $C$ ,  $B<C$ , and a one digit number  $D$  are formed. The numbers are such that  $A+D=B+C=143$ . In how many ways can this be done? 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
24
Using each of the eight digits  $1,3,4,5,6,7,8$  and  $9$  exactly once, a three-digit number  $A$ , two two-digit numbers  $B$  and  $C$ ,  $B<C$ , and a one digit number  $D$  are formed. The numbers are such that  $A+D=B+C=143$ . In how many ways can this be done?
test