def main(): N = int(input()) minimum = N - 100 maximum = N + 100 composite_number = [] for n in range(minimum, maximum): if len(composite_number) == 0: for m in range(2, n - 1): if n % m == 0: composite_number.append(n) break print(*composite_number)