def factorial(n):
    if n == 1: return 1
    elif n > 1:
        return (n*factorial(n-1))

n = int(input())
print(factorial(n))

3559eccea6abdc7cebf710834a951cee27af3a80
<mask token>

def factorial(n):
    if n == 1:
        return 1
    elif n > 1:
        return n * factorial(n - 1)


<mask token>

def factorial(n):
    if n == 1:
        return 1
    elif n > 1:
        return n * factorial(n - 1)


<mask token>
print(factorial(n))

def factorial(n):
    if n == 1:
        return 1
    elif n > 1:
        return n * factorial(n - 1)


n = int(input())
print(factorial(n))

def factorial(n):
    if n == 1: return 1
    elif n > 1:
        return (n*factorial(n-1))

n = int(input())
print(factorial(n))
