n = int(input()) if n == 3: print("21 24 144") else: # For n > 3, we can extend the sequence by adding numbers in front of 21 # For example, starting from 20, 21, 24, 144 and adding more numbers before 20 # Here, we construct a sequence starting from 20 - (n-3)*2, stepping by 2 each time start = 20 - (n - 3) * 2 sequence = list(range(start, 20 + 1, 2)) sequence += [21, 24, 144] print(' '.join(map(str, sequence[:n])))