fun main(args: Array<String>) = println(run {
    val n = readLine()!!.toInt()

    val dp = BooleanArray(111)
    dp[0] = true
    repeat(100) {
        if(dp[it]) {
            dp[it+4] = true
            dp[it+7] = true
        }
    }
    if(dp[n]) "Yes" else "No"

})
