object Main extends App {
	val a = scala.io.StdIn.readInt
	val n = a/7

	var flag = false

	for(i<-0 to n){
		val t = 7*i
		if((a-t)%4 == 0) flag = true
	}


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