defmodule Main do def main do [s, f] = IO.gets("") |> String.trim |> String.split(" ") |> Enum.map(&String.to_integer/1) Float.ceil(s/f) |> Kernel.trunc |> add_one |> IO.puts end def add_one(x), do: x + 1 end