local N = io.read("*n")

local max_7 = math.modf(N / 7)

local isYes = false
for i = 0, max_7 do
	local without_7 = N - 7 * i
	if without_7 % 4 == 0 then
		isYes = true
		break
	end
end

print(isYes and "Yes" or "No")