defmodule Main do def main do IO.gets("") |> String.codepoints |> Enum.filter(&String.match?(&1, ~r/[0-9]/)) |> Enum.map(&String.to_integer/1) |> Enum.sum |> IO.puts end end