n = int(input())

# For N=3, the sample output is 21 24 144.
# For larger N, we can extend this pattern by multiplying by 6 each time.
if n >= 3:
    base = [21, 24]
    current = 24
    for _ in range(n-2):
        current *= 6
        base.append(current)
    print(' '.join(map(str, base)))
else:
    # Although the problem states N >=3, handle edge cases if necessary.
    pass