defmodule Main do def main do inputs = IO.binread(:all) |> String.split as = inputs |> Stream.drop(1) |> Stream.map(&(String.to_integer(&1))) IO.puts Enum.sum(as) end end