Susan picked 671 bananas from the trees in the morning, and she picked 296 more bananas in the afternoon. However, 345 bananas were not ripe enough, so she put them back. How many ripe bananas did Susan end up with?