local n = io.read('*n')
local x = io.read("*n")
io.read("*l")
local a = {}
for i = 1, n do
	a[i] = io.read("*n")
end
local b = {}
for i = 1, n do
	b[i] = {}
	b[i][0] = a[i]
	for j = 1, n - 1 do
		local idx = i - j
		if idx <= 0 then
			idx = idx + n
		end
		b[i][j] = math.min(a[idx], b[i][j - 1])
	end
end

local min = math.huge
local sum
for j = 0, n - 1 do
	sum = 0
	for i = 1, n do
		sum = sum + b[i][j]
	end
	sum = sum + j * x
	min = math.min(sum, min)
end
print(min)