fun main(args: Array<String>) {
  val n = readLine()!!.toInt()
  if (n == 3) {
    println("2 5 63")
    return
  }

  val xs = mutableListOf<Int>()
  var remainingN = n
  for (k in 0 until 2500) {
    if (remainingN >= 2) {
      xs.add(12 * k + 2)
      xs.add(12 * k + 4)
      remainingN -= 2
    }
    if (remainingN >= 2) {
      xs.add(12 * k + 3)
      xs.add(12 * k + 9)
      remainingN -= 2
    }
    if (remainingN >= 2) {
      xs.add(12 * k + 8)
      xs.add(12 * k + 10)
      remainingN -= 2
    }
  }
  for (k in 0 until 2500) {
    if (remainingN >= 1) {
      xs.add(12 * k + 6)
      remainingN -= 1
    }
    if (remainingN >= 1) {
      xs.add(12 * k + 12)
      remainingN -= 1
    }
  }
  println(xs.joinToString(" "))
}
