object Main {
    def main(args: Array[String]) {
        val price = scala.io.StdIn.readInt()
        var check = false

        for(i <- 0 to 25) {
            for(j <- 0 to 14) {
                if(4*i + 7*j == price) {check = true}
            }
        }

        if(check) println("Yes")
        else      println("No")
    }
}