defmodule Main do def main do IO.gets("") IO.gets("") |> String.trim |> String.split |> Enum.reduce(0, fn n, acc -> acc + String.to_integer(n) end) |> IO.puts end end