import java.util.Scanner

fun main(args: Array<String>){
    val scanner = Scanner(System.`in`)
    val N = scanner.nextInt()
    val ss: Array<Int> = arrayOf(7, 17, 37, 47, 67, 97, 107, 127, 137, 157, 167, 197, 227, 257, 277, 307, 317, 337, 347, 367, 397, 457, 467, 487, 547, 557, 577, 587, 607, 617, 647, 677, 727, 757, 787, 797, 827, 857, 877, 887, 907, 937, 947, 967, 977, 997, 1087, 1097, 1117, 1187, 1217, 1237, 1277, 1297, 1307)
    for (i in 0 until N-1){
        print(ss[i])
        print(" ")
    }
    println(ss[N-1])
}