import java.util.Scanner

object Main {
  def main(args: Array[String]): Unit = println(solve(new Scanner(System.in)))

  def solve(in: String): String = solve(new Scanner(in))

  def solve(sc: Scanner): String = {
    val N = sc.nextInt

    var i = 0
    while (4 * i <= N) {
      if ((N - 4 * i) % 7 == 0) {
        return "Yes"
      }
      i += 1
    }
    "No"
  }
}
