There were some people on a train. 17 people get off the train at the first stop and 22 people get on the train. Now there are 66 people on the train. How many people were on the train to begin with?