Actually it shouldn’t matter a lot. But for additional peace of mind, you might want to sit at the very front of the S3, so you’d leave the S3 close to the last escalators on platform 41 leading up to the “Sihlpassage” underpass. Finding platform 31 from there is somewhat easier and more straightforward than at the other end of Zurich HB.