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() |> String.to_charlist ans = f(s, 0, 0) IO.puts ans end def f([], k, m), do: max(k, m) def f([?y, ?u, ?k, ?i, ?c, ?o, ?d, ?e, ?r | xs], k, m) do f(xs, k+1, m) end def f([_ | xs], k, m) do f(xs, 0, max(k, m)) end end