let readInt () = stdin.ReadLine() |> int
let choice ok ng bool = if bool then ok else ng

readInt ()
|> fun x ->
    (x >= 4 && (x % 4) = 3 || (x % 4) = 0)
    || ((x % 4) = 1 && x >= 7)
|> choice "Yes" "No"
|> printfn "%s"
