Andrey's submission of Triple-tree decomposition | CodeChef