Rohit Goyal's submission of How Well Trained is Your Dragon | CodeChef