defmodule Main do def input, do: IO.read(:line) |> String.trim def ii, do: input() |> String.to_integer def li, do: input() |> String.split |> Enum.map(&String.to_integer/1) def yn(b), do: IO.puts(if b, do: "Yes", else: "No") def main do s = input() f(s, 0, 0) |> IO.puts end def f(s, k, m) do case s do "" -> max(k, m) "yukicoder" <> t -> f(t, k+1, m) _ -> {_, t} = String.next_grapheme(s) f(t, 0, max(k, m)) end end end