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
A cat broke into a wine store at night. It jumped onto a shelf where wine bottles were arranged in a long row - the first third of bottles were priced at 160 CZK each, the next third were priced at 130 CZK each, and the last third at 100 CZK each. First, the cat knocked over a bottle priced at 160 CZK, which was at the very beginning of the row, and then continued knocking over one bottle after another without skipping any. It knocked down a total of 25 bottles before it stopped. In the morning, the owner regretted that the cat did not start its rampage from the other end of the shelf. If it had broken the same number of bottles from the other end, the damage would have been 660 CZK less. How many bottles were originally on the shelf?
user
36
rule
A cat broke into a wine store at night. It jumped onto a shelf where wine bottles were arranged in a long row - the first third of bottles were priced at 160 CZK each, the next third were priced at 130 CZK each, and the last third at 100 CZK each. First, the cat knocked over a bottle priced at 160 CZK, which was at the very beginning of the row, and then continued knocking over one bottle after another without skipping any. It knocked down a total of 25 bottles before it stopped. In the morning, the owner regretted that the cat did not start its rampage from the other end of the shelf. If it had broken the same number of bottles from the other end, the damage would have been 660 CZK less. How many bottles were originally on the shelf?
train