surya's submission of Magic Rankings | CodeChef