Shreyash Gupta's submission of A Balanced Contest | CodeChef