object Main extends App {
  def loop(lest: Int): String = lest match {
    case l if l > 4 => loop(lest - 7)
    case l => if (l % 4 == 0) "Yes" else "No"
  }

  println(loop(io.StdIn.readLine.split(' ').head.toInt))
}
