n = int(input())

p_list=[2]
k = 3
print(2)
while len(p_list)<n:
    for p in p_list:
        if k %p ==0:
            isPrime = False
            break
        isPrime = True
    
    if isPrime:
        p_list.append(k)
        print(k)
    k  += 2