'use strict'

const main = input => {
	const args = input.split('\n').map(arg => arg.split(' '))
	const n = parseInt(args[0][0], 10)
	let flg = false

	for (let i = 0; i <= Math.floor(n / 4); i++) {
		for (let j = 0; j <= Math.floor(n / 7); j++) {
			if (4 * i + 7 * j === n) flg = true
		}
	}

	if (flg) console.log('Yes')
	else console.log('No')
}

main(require('fs').readFileSync('/dev/stdin', 'utf8'))
