defmodule Main do def main do no = IO.gets("") |> String.replace("\n", "") |> String.to_integer IO.puts Enum.sum(1..no) end end