Ivan's submission of Power Tree | CodeChef