choice = int(input("Enter a number: "))

def fact(num):
    if(num == 0):
        return 1
    return num * fact(num-1)

factorial = fact(choice)
print("The factorial of %d is %d." % (choice, factorial))