Wentao Wang's submission of Kali and Devtas | CodeChef