#!/usr/bin/python

print "Saisir un nombre"
nb = int( raw_input() )

fact = 1
for i in range( 2, nb + 1 ):
    fact *= i
print fact
