import java.util.*

val sc = Scanner(System.`in`)
val N = sc.nextInt()

fun main(args: Array<String>) {
    println(if (judge(N)) "Yes" else "No")
}

fun judge(n: Int): Boolean {
    val cake = 4
    val doughnut = 7

    for (c in 0..n / cake) {
        for (d in 0..n / doughnut) {
            if (c * cake + d * doughnut == n) {
                return true
            }
        }
    }
    return false
}
