defmodule Main do def main do [a, b] = IO.gets("") |> String.trim |> String.split |> Enum.map(&String.to_integer/1) ans = a..b |> Enum.count(&(rem(a + b + &1, 3) == 0)) IO.puts ans end end