import scala.io.StdIn

object Main extends App {
  val n = StdIn.readLine.toInt
  if((n % 4 == 0) || (n % 7 == 0) || (n % 11 == 0)) println("Yes")
  else {
    val ans = if ((7 until n by 7).exists(i => (n - i) % 4 == 0)) "Yes"
      else "No"
  println(ans)
  }
}