defmodule Main do def main do IO.read(:line) |> Integer.parse() |> solve |> IO.puts() end def solve({n, _}) do m = n |> rem(360) cond do m == 90 || m == 90 * 3 -> "Yes" :else -> "No" end end end