ans = [8633, 14774, 19671, 28835, 36281, 52327, 53131, 61183, 71921, 72239, 74777, 75809, 80401, 81437, 87203, 87377, 92207, 94639, 95251, 96239, 96943, 97195, 97215, 97302] print(*ans[:int(input())])