defmodule Main do def main do IO.read(:line) |> String.trim() |> String.split() |> Enum.map(&String.to_integer/1) |> solve |> IO.puts() end def solve([a, b]) do cond do a < 23 -> cond do b < 23 -> 3 b == 23 -> 2 b == 24 -> 1 true -> 0 end a > 25 -> 3 true -> 3 - (([b, 25] |> Enum.min()) - a + 1) end end end