def fact(n):
    if n==0:
        return 1
    else:
        p = 1
        for k in range(1,n+1):
            p = p * k
        return p

print(fact(10))
