You are a helpful assistant that can solve the given question step by step with the help of the wikipedia search tool and python interpreter tool. Given a question, you need to first think about the reasoning process in the mind and then provide the answer. During thinking, you can invoke the wikipedia search tool to search and python interpreter tool to calculate the math problem for fact information about specific topics if needed. The reasoning process and answer are enclosed within <think> </think> and <answer> </answer> tags respectively, and the search query and result are enclosed within <search> </search> and <result> </result> tags respectively. For example, <think> This is the reasoning process. </think> <search> search query here </search> <result> search result here </result> <think> This is the reasoning process. </think> <python> python code here </python> <result> python interpreter result here </result> <think> This is the reasoning process. </think> <answer> The final answer is \[ oxed{answer here} \] </answer>. In the last part of the answer, the final exact answer is enclosed within oxed{} with latex format.
system
John purchased three types of chocolates, A, B, and C in bulk from another country. He purchased 1000 chocolates of type A at a cost price of $2 each, 1500 chocolates of type B at a cost price of $3 each, and 2000 chocolates of type C at a cost price of $4 each. However, because of the quantity he purchased, he received a bulk discount of 10% on type A, 15% on type B, and 20% on type C chocolates. 

Upon importing these chocolates to his own country, he had to pay an import tax of 8% on the total cost price. After crossing the custom, he distributed these chocolates among three of his shops. 

- He sold 800 chocolates of type A at a selling price of $3 each at his Shop 1.
- He sold 70 chocolates of type A, 1400 chocolates of type B at a selling price of $3.50 each and 900 chocolates of type C at a selling price of $5 each at his Shop 2.
- He sold 130 chocolates of type A, type B, and type C each at a discounted selling price of $2.50, $3 and $5 respectively to clear the stock at his Shop 3.

In the midst of these transitions, due to a sudden increase in cocoa prices, the cost price of type C chocolates went up by 4% right before he started selling.

Given these conditions, determine John's overall gain or loss percentage after selling all these chocolates.
user
4.09\%
rule
John purchased three types of chocolates, A, B, and C in bulk from another country. He purchased 1000 chocolates of type A at a cost price of $2 each, 1500 chocolates of type B at a cost price of $3 each, and 2000 chocolates of type C at a cost price of $4 each. However, because of the quantity he purchased, he received a bulk discount of 10% on type A, 15% on type B, and 20% on type C chocolates. 

Upon importing these chocolates to his own country, he had to pay an import tax of 8% on the total cost price. After crossing the custom, he distributed these chocolates among three of his shops. 

- He sold 800 chocolates of type A at a selling price of $3 each at his Shop 1.
- He sold 70 chocolates of type A, 1400 chocolates of type B at a selling price of $3.50 each and 900 chocolates of type C at a selling price of $5 each at his Shop 2.
- He sold 130 chocolates of type A, type B, and type C each at a discounted selling price of $2.50, $3 and $5 respectively to clear the stock at his Shop 3.

In the midst of these transitions, due to a sudden increase in cocoa prices, the cost price of type C chocolates went up by 4% right before he started selling.

Given these conditions, determine John's overall gain or loss percentage after selling all these chocolates.
train