fun main(args: Array<String>) {
    val n = readLine()!!.toInt()
    var ok = false
    for (i in 0..n/4){
        for(k in 0..n/7){
            if(4*i + 7*k == n) ok = true
        }
    }
    if(ok) println("Yes") else println("No")
}