##缩进格式请看图
n,s=0,int(input())
if s<2:
s=2
while n<并租20:
for i in range(2,s):
if s%i==0:break
else:
n+=1
print("{0:>中庆10d}".format(s),end=''绝培兆)
if n%4==0:print()
s+=1