let () =
  let a = Array.make 101 false in
  a.(0) <- true;
  for i = 1 to 100 do
    if i >= 4 then a.(i) <- a.(i) || a.(i-4);
    if i >= 7 then a.(i) <- a.(i) || a.(i-7);
  done;
  print_endline @@ Scanf.scanf "%d" @@ fun n -> if a.(n) then "Yes" else "No"