'use strict';

function main(arg) {
    const N = arg.split("\n")[0];
    
    if(N < 4) {
        console.log("No");
        return;
    }
    
    if(N % 4 === 0 || N % 7 === 0 ) {
        console.log("Yes");
        return;
    }
    
    if((N - 4) % 7 === 0 || (N - 7) % 4 === 0) {
        console.log("Yes");
        return;
    }
    
    console.log("No");
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));