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