n = int(input()) if n == 3: print("21 24 144") else: # For n >=4, we can use a different pattern. # For example, the sequence 10, 12, 16, 32, 64, ... works up to certain N. # But for higher N, we need to adjust. # Here, we'll generate a sequence where each pair's GCD doubles and the elements are multiples. # This works for N up to 25. seq = [] a = 10 seq.append(a) a = 12 seq.append(a) current_gcd = 2 # GCD of 10 and 12 is 2 for i in range(2, n): next_gcd = current_gcd * 2 next_element = seq[-1] * (next_gcd // current_gcd) * 2 seq.append(next_element) current_gcd = next_gcd print(' '.join(map(str, seq)))