n = int(input()) def get_result(n): if n == 1: return [1, 2, 5, 10] else: pre = get_result(n - 1) result = [] for i in pre: for j in [1, 2, 5, 10]: result.append(i * j) return list(set(result)) results = sorted(get_result(n)) for result in results: print(result)