def jc(n):
    sum = 0
    if n == 1:
       sum = 1
    elif n > 1:
        sum = n * jc(n -1)
    else:
        return 0
    return sum


n_input = int(input("请输入一个正整数:"))

print("它的阶乘为:{}={}".format("*".join(str(x) for x in range(n_input, 0, -1)),jc(n_input)))