def main(): n = int(input()) res = 1 ans = [] for i in range(1, n+1): res *= i ans.append(res) print(*ans) if __name__ == "__main__": main()