defmodule Main do def main do n = IO.read(:line) |> String.trim() |> String.to_integer() xn = IO.read(:line) |> String.trim() |> String.split(" ") |> Enum.map(&String.to_integer/1) solve(n, xn) |> Enum.join("\n") |> IO.puts end def solve(n, xn) when 1 <= n and 1 <= 100_000 and length(xn) == n do a = xn |> Enum.reduce(0, &(&1 + &2)) |> Kernel./(n) xn |> Enum.map(&(round(50 - (a - &1) / 2))) end def solve(_, _), do: :error end