object Main extends App {
  val in = new java.util.Scanner(System.in)
  val N = in.nextInt

  println(
    if ((0 to 100 by 4).exists(d4 => (0 to 100 by 7).exists(d7 => d4 + d7 == N))) "Yes"
    else "No"
  )
}