(* O(n^2) *)
let n = read_int () in
let c_max = n / 4
and d_max = n / 7 in
for c = 0 to c_max do
  for d = 0 to d_max do
    if c * 4 + d * 7 = n then (print_endline "Yes"; exit 0)
  done
done;
print_endline "No"