function main(arg) {
    arg = arg.split("\n")
    arg = parseInt(arg[0], 10)

    var flag = false
    for (var i = 0; i < 100; i++){
        var num = 4 * i
        if (num > arg) {
            break;
        }
        var sum = (arg - num)
        if ((sum % 7) === 0 ) {
            flag = true
            break
        }
    }
    if (flag) {
        console.log('Yes')
    } else {
        console.log('No')
    }
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));