defmodule Main do def main do IO.read(:line) |> String.trim() |> String.split(",") |> solve() |> IO.puts() end def solve(s) do s |> Enum.filter(&(&1 != "AC")) |> length() |> case do 0 -> "Done!" _ -> "Failed..." end end end