object Main extends App{
    val n = scala.io.StdIn.readInt

    def check(n: Int): Boolean = {
        for (i <- 0 to n/4) {
            if ((n-4*i) % 7 == 0){
              return true
            }
        }
        return false
    }

    if (check(n)) println("Yes") else println("No")
}