My Solutions for 2017 Code Jam Round 1B