defmodule Main do def main do [x, y, z] = IO.read(:line) |> String.trim() |> String.split(" ") |> Enum.map(&String.to_integer/1) solve(x, y, z) |> IO.puts() end def solve(x, y, z) def solve(x, _y, _z) when rem(x, 3) == 0, do: "Yes" def solve(_x, y, _z) when rem(y, 3) == 0, do: "Yes" def solve(_x, _y, z) when rem(z, 3) == 0, do: "Yes" def solve(_, _, _), do: "No" end