Making a 13s battery out of lipo

Hello I want to connect 3 batteries in series to create a 13s battery. I have 2 batteries of 5s, 5Ah, and 1 battery 3s 4Ah.

What will be a more wise connection? The 3s between the 5s batteries? Or in one of the sides? Thank you

Both of those are dangerous