Ilya Malinovsky's submission of Little Elephant and Magic | CodeChef