class Solution:
def sushu(self,shu:int):
jieguo=[]
s=2
n=2
str1=''
for m in range(2,shu+1):
for n in range(2, m):
if m % n == 0:
break
else:
jieguo.append(m)
for i in jieguo:
str1=str1+str(i)+','
return str1[:-1]
if __name__=="__main__":
solution=Solution()
xianzhi=int(input("shuru:"))
print(solution.sushu(xianzhi))