defmodule Main do def main do IO.read(:line) |> String.split() |> Enum.map(&String.to_integer/1) |> solve |> IO.puts() end defp solve([a, b]) do a..b |> Enum.filter(fn i -> i |> rem(3) == 0 || i |> to_string |> String.to_charlist() |> Enum.count(&(&1 == ?3)) >= 1 end) |> Enum.join("\n") end end