n = int(input()) if n == 3: print("21 24 144") else: # For N > 3, we can extend the sequence by adding multiples of the last element # that are larger but share factors to reduce the LCM. # One possible way is to use the pattern 21, 24, 144, 144*7=1008, 1008*7=7056, etc. # This ensures the sequence is increasing and LCM decreases each time. a = [21, 24, 144] current = 144 for _ in range(3, n): current *= 7 a.append(current) print(' '.join(map(str, a[:n])))