In each cell of a strip of length 100 there is a chip. You can swap any two adjacent chips for 1 ruble, and you can also swap any two chips for free if there are exactly three chips between them. What is the minimum number of rubles needed to reverse the order of the chips?