Niyaz Nigmatullin's submission of Bear and Bribing Tree | CodeChef