<s>[INST] def factorial(n):
    if n == 0:
        return 1
    else:
        return n * factorial(n-1)

def crazy_function(n, l=10):
    if n < 0:
        return "Invalid input"
    elif n == 0:
        return l ** 2
    else:
        return n * factorial(l) + crazy_function(n-1, l+2*n)[/INST]