fun main(arr: Array<String>) {
    println(if(solve()) "Yes" else "No")
}

fun solve():Boolean {
    val n = readLine()!!.toInt()
    for(i in (0..n)) {
        val diff = n - i*7
        if(diff < 0) {
            break
        }
        if(diff % 4 == 0) {
            return true
        }
    }
    return false
}