# YOGESH SINGH RANA MCA 3 - DEHRADUN Campus STD ID-20711130

print("Enter the Number of which you want to find factorial: ")
num = int(input())

fact = 1
i = 1
while i<=num:
    fact = fact*i
    i = i+1

print("\nFactorial of given number is =", fact)