n = int(input()) def fact(x): res =1 for i in range(1,x+1): res = res * i return res for j in range(1,n+1): print( fact(j),end=" ")