<filename>BOJ/week02/recursion/ex10872.py
N = int(input())


def factorial(N):
    if N == 0:
        return 1
    return N * factorial(N-1)


print(factorial(N))

<filename>BOJ/week02/recursion/ex10872.py
N = int(input())


def factorial(N):
    if N == 0:
        return 1
    return N * factorial(N-1)


print(factorial(N))
