Niyaz Nigmatullin's submission of Omax | CodeChef