from math import* from itertools import* n=int(input()) s=[1,2,3,4,6,8,9,12,16,18,24,27,36,48,54,72,81] m=1<<60 for cs in combinations(s,n): t=set() for i in cs: for j in cs: if i!=j: t.add(lcm(i,j)) if m>len(t): m=len(t) ans=cs print(*ans)