# coding=utf-8
# author: sloop
from functools import reduce

'''
计算斐波那契数
允许参数: 数字
'''


def factorial(n):
    return reduce(lambda x, y: x * y, range(1, n + 1))


for i in range(1, 20):
    print(factorial(i))
