fun main(args: Array<String>) {
    val N = readLine()!!.toInt()
    println(if (f(N)) "Yes" else "No")
}

fun f(x: Int): Boolean {
    val a = if (x < 4) x == 0 else f(x - 4)
    val b = if (x < 7) x == 0 else f(x - 7)

    return a || b
}