'''
Write a program which can compute the factorial of a given number.
'''
def fact(x):
    if x==0:
        return 1
    return x*fact(x-1)
x=int(input())
print(fact(x))
c558e97cc99ddeb0bb4042eba88b36240d914c5f
<mask token>

<mask token>


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


<mask token>

<mask token>


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


<mask token>
print(fact(x))

<mask token>


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


x = int(input())
print(fact(x))

'''
Write a program which can compute the factorial of a given number.
'''
def fact(x):
    if x==0:
        return 1
    return x*fact(x-1)
x=int(input())
print(fact(x))