ltst's submission of Forgotten Tree 9 | CodeChef