defmodule Main do def main do d = IO.read(:line) |> String.trim |> String.to_integer; [a, b] = IO.read(:line) |> String.trim |> String.split(" ") |> Enum.map(&String.to_integer/1) x_list = Enum.to_list(0..d+1); IO.puts x_list; ans = x_list |> Enum.map &(&1 * a + (d - &1) * b) |> IO.inspect end end