On a non-holiday Wednesday in August, you shouldn't have any trouble at all getting a ticket even at the last minute. At the moment there are plenty of seats on all those trains (to the extent that they are all still selling at the super-advance -discount price of 9,90€). No worries.