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

    for (f in 0..25) {
        for (s in 0..13) {
            if (f == 0 && s == 0) {
                continue
            }
            if (N % (f * 4 + s * 7) == 0) {
                println("Yes")
                return
            }
        }
    }
    println("No")
}