fun main(args: Array<String>) {
  val N = readLine()!!.toInt()

  var bool = false
  for(x in 0..25) {
    for(y in 0..25) {
      val sum = x*4 + y*7
      if(sum == N) {
        bool = true
      }
    } 
  } 
  if(bool) println("Yes") else println("No")
}