# -*- coding: utf-8 -*-
"""
Created on Tue May  7 17:06:09 2019

@author: Dinesh Prajapat
"""

from math import factorial as fact


# calculate the factorial of the given number

number = int(input("Enter the number to calculate the factorial:"))

# calculate the factorial of the number
print(fact(number))