File.stream!("input-1")
|> Stream.map(&String.trim/1)
|> Stream.map(fn n -> String.to_integer(n) end)
|> Enum.to_list
|> Enum.sum
|> IO.puts