The list shows the number of visitors who arrived and the numbers of visitors who left a science museum for the first three hours after it opened one day.
* In the first hour, 294 visitors arrived.
* In the second hour, 408 visitors arrived and 89 visitors left.
* In the third hour, 313 visitors arrived and 175 visitors left.
How many visitors were in the science museum after the third hour?