On Thursday afternoon at camp, Ivan played basketball and went swimming before dinner. He started playing basketball at 2:20 P.M. and played for 1 hour and 35 minutes. Then he swam for 1 hour and 35 minutes. Dinner lasted for 1 hour and 10 minutes. What time did dinner end?