
fun main(args : Array<String>) {
    val N = readLine()!!.toInt()

    for (x in 0..(N)) {
    	for (y in 0..(N)) {
            val sum = 4 * x + 7 * y
            if (sum == N) {
                println("Yes")
                return
            }
    	}
    }
    println("No")
}
