let rec f n =
  if n mod 4 = 0 then true
  else if n mod 7 = 0 then true
  else if n > 4 then f (n-4)
  else false
let rec g n =
  if n mod 7 = 0 then true
  else if n mod 4 = 0 then true
  else if n > 7 then g (n-7)
  else false
let () =
  Scanf.scanf "%d\n"
    (fun n -> if f n || g n then "Yes" else "No") |> print_string