defmodule Main do def main do n = IO.read(:line) |> String.trim() |> String.to_integer() n |> solve() |> IO.puts() end def solve(n) when rem(n, 6) == 0, do: "Yes" def solve(_), do: "No" end