### Extra Long Factorials - Solution

from math import factorial

def extraLongFactorials(n):
    result = factorial(n)
    print(result)

n = int(input())
extraLongFactorials(n)
### Extra Long Factorials - Solution

from math import factorial

def extraLongFactorials(n):
    result = factorial(n)
    print(result)

n = int(input())
extraLongFactorials(n)
### Extra Long Factorials - Solution