Niyaz Nigmatullin's submission of Tree Product | CodeChef