# -*- coding: utf-8 -*-
"""
Created on Tue Sep 22 14:39:27 2020

@author: Sim
"""
# factorial1.py
def factorial(x):
    if x == 1:
        return 1
    else:
        return x * factorial(x-1)

nn= int(input("Type in n for n! :"))
print(factorial(nn))