defmodule Main do def main do x = IO.gets("") |> String.trim |> String.split(" ", trim: true) |> Enum.map(&String.to_integer/1) case {div(x |> Enum.at(1), x |> Enum.at(0)), rem(x |> Enum.at(1), x |> Enum.at(0))} do {n, 0} -> n {n, _} -> n + 1 _ -> 0 end |> Integer.to_string |> IO.puts end end