A train carries a certain number of passengers. At its first stop, 35% of the passengers leave the train. At the second stop, 24 passengers get off the train. At the third and final stop, all remaining passengers get off the train. The number of passengers who left at the third stop happened to be equal to the number of passengers who left at the first stop. How many passengers were originally on the train?