import kotlin.math.ceil
import kotlin.system.exitProcess

fun main(args: Array<String>) {
    abc105B(args)
}

fun abc105B(args: Array<String>) {
    val N = readLine()!!.toInt() // 1 <= N <= 100 dollars
    val priceCake = 4
    val priceDonut = 7

    val upperLimitOfCake = ceil(N.toDouble() / priceCake).toInt()
    val upperLimitOfDonut = ceil(N.toDouble() / priceDonut).toInt()

    for (cake in 0..upperLimitOfCake) {
        for (donut in 0..upperLimitOfDonut) {
            if (cake*priceCake + donut*priceDonut == N) {
                print("Yes")
                exitProcess(0)
            }
        }
    }
    print("No")
}
