manas agrawal's submission of Magic Elements | CodeChef