Ilya Malinovsky's submission of Save The Princess | CodeChef