Ilya Malinovsky's submission of A Fence for Byteland | CodeChef