N = int(input()) n = 0 #记号数 while True: res = N*n + 2 if res>1 and res<10000: print(res) else: break n += 1