def fatorial(N):
    fat = 1
    if N > 1:
        for i in range(N, 0, -1):  # start (inclusivo), stop (exclusivo), step
            fat = fat * i
    return fat


N = int(input())
print(fatorial(N))

ded042c1e3ee72758dc1afd9173f1663802261cd
<mask token>

def fatorial(N):
    fat = 1
    if N > 1:
        for i in range(N, 0, -1):
            fat = fat * i
    return fat


<mask token>

def fatorial(N):
    fat = 1
    if N > 1:
        for i in range(N, 0, -1):
            fat = fat * i
    return fat


<mask token>
print(fatorial(N))

def fatorial(N):
    fat = 1
    if N > 1:
        for i in range(N, 0, -1):
            fat = fat * i
    return fat


N = int(input())
print(fatorial(N))

def fatorial(N):
    fat = 1
    if N > 1:
        for i in range(N, 0, -1):  # start (inclusivo), stop (exclusivo), step
            fat = fat * i
    return fat


N = int(input())
print(fatorial(N))
