local k, n = io.read("*n", "*n")
local t = {}

if k % 2 == 0 then
  table.insert(t, k / 2)
  for i = 1, n - 1 do table.insert(t, k) end
else
  local hk = (k + 1) / 2
  for i = 1, n do t[i] = hk end
  local decnum = math.ceil((n - 1) / 2)
  for i = 1, decnum do
    for j = n, 1, -1 do
      if 0 < t[j] then
        t[j] = t[j] - 1
        if t[j] ~= 0 then
          for s = j + 1, n do
            t[s] = k
          end
        end
        break
      end
    end
  end
  for i = 1, n do
    if t[i] == 0 then
      for j = i, n do
        table.remove(t)
      end
      break
    end
  end
end

print(table.concat(t, " "))
