import java.util.*

fun main(args: Array<String>) {
    val scn = Scanner(System.`in`)
    val number: Int = scn.nextLine().toInt()

    val maxDoughnuts: Int = number / 7
    val doughnutsNumber = (0..maxDoughnuts).toList().filter {
        (number - 7 * it) % 4 == 0
    }.toList().size

    if (doughnutsNumber == 0) {
        println("No")
    } else {
        println("Yes")
    }

}