defmodule Main do def input, do: IO.read(:line) |> String.trim def ii, do: input() |> String.to_integer def li, do: input() |> String.split |> Enum.map(&String.to_integer/1) def yn(b), do: IO.puts(if b, do: "Yes", else: "No") def main do [n, k] = li() if rem(n, k) != 0 do IO.puts(-1) else one = div(n, k) dices = List.duplicate(1, one) ++ List.duplicate(2, n - one) IO.puts Enum.join(dices, " ") end end end