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

    val n0 = n % 11
    println(
      if(n % 4 == 0 || n % 7 == 0 ) "Yes"
      else "No"
    )
  }
}