Niyaz Nigmatullin's submission of Jewels and Stones | CodeChef