import java.util.Scanner

fun main(args:Array<String>){
    val scanner=Scanner(System.`in`)

    val a=scanner.nextInt()

    val b=a%4
    val c=a%7

    if (b==0) println("Yes")
    else if (c==0) println("Yes")
    else if (b==1) {
        if (a>=21) println("Yes")
        else println("No")
    }
    else if (b==2){
        if (a>=14) println("Yes")
        else println("No")
    }
    else{
        if (a>=7) println("Yes")
        else println("No")
    }
}