object Main extends App{
  var a = readInt
  var b = 0
  for (v1 <- 0 to a / 4; v2 <- 0 to a / 7) {
  	if(v1 * 4 + v2 * 7 == a){
      b =  b + 1
    }
  }
  if(b!=0){
    print("Yes")
  } else {
    print("No")
  }
}