fun main(args:Array<String>) {
    val n = readLine()!!.trim().toInt()
    when(n){
        in 1..3-> println("No")
        in 5..6-> println("No")
        4,7-> println("Yes")
        else->{
            for(i in 0..n/7){
                val dif = n - 7*i
                if(dif%4 == 0){
                    println("Yes")
                    return
                }
            }
            println("No")
        }
    }
}