defmodule Main do def main do IO.read(:line) |> String.trim() |> String.to_integer() |> solve |> IO.puts() end def solve(n) do 1..n |> Enum.map(fn i -> a = i |> rem(3) == 0 b = i |> rem(5) == 0 cond do a || b -> cond do a -> "Fizz" true -> "" end <> cond do b -> "Buzz" true -> "" end true -> i end end) |> Enum.join("\n") end end