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

    var ok = false
    var current = 0
    while (current <= price){
        if ((price - current) % 7 == 0){
            ok = true
            break
        }
        current += 4
    }
    if (ok){
        println("Yes")
    }else{
        println("No")
    }
}