local n = tonumber(io.read());
local count4, count7 = n // 4, n // 7;
local result = "No";

for i = 0, count4 do
    for j = 0 , count7 do
        if i * 4 + j * 7 == n then
            result = "Yes";
            goto exit
        end
    end
end

::exit::
print(result);