How to reach Trento by train

The Brenner railway and the Valsugana Railway from Venice.