defmodule Main do
  def main do
    IO.gets("") |> String.trim |> String.split(" ") |>Enum.map(fn x->String.to_integer(x)end)
    |>List.to_tuple()
    # |>IO.puts()
    |> (fn x ->  Enum.map(0..4, fn y-> (if elem(x,y)==0 do IO.puts(y+1) end) end)end).()
  end
end
