fun prev(xs: IntArray, k: Int) {
  val n = xs.size
  if (xs[n - 1] > 0) {
    xs[n - 1]--
  } else {
    var p = n - 1
    while (xs[p] == 0) {
      p--
    }
    // val p = xs.indexOfLast { it > 0 }
    xs[p]--
    if (xs[p] > 0) {
      for (i in (p + 1) until n) {
        xs[i] = k
      }
    }
  }
}

fun main(args: Array<String>) {
//  val ys = intArrayOf(3, 3, 3, 3, 3)
//  repeat(100) {
//    prev(ys, 5)
//    println(ys.asList())
//  }

  val (k, n) = readLine()!!.split(" ").map(String::toInt)

  if (k == 1) {
    val l = (n + 1) / 2
    val xs = IntArray(l, { 1 })
    println(xs.joinToString(" "))
    return
  }

  if (k % 2 == 0) {
    val xs = IntArray(n, { if (it == 0) k / 2 else k })
    println(xs.joinToString(" "))
    return
  }

  val xs = IntArray(n, { (k + 1) / 2 })
  repeat(n / 2) {
    prev(xs, k)
  }
  println(xs.filter { it > 0 }.joinToString(" "))
}
