def factorial(n):
    if (n == 0):
        return 1.0
    else:
        return (float(n) * factorial((n - 1)))
def factorial(n):
    if (n == 0):
        return 1.0
    else:
        return (float(n) * factorial((n - 1)))