object Main {
  def main(args:Array[String]) = {
    val sc = new java.util.Scanner(System.in)
    val n = sc.nextInt

    println(
      if(List(0, 1, 4, 5) contains n % 7 ) "Yes"
      else "No"
    )
  }
}