Best solutions for IOI 2017 - Wiring