def Recursion(x):
if x == 1 or x == 0:
return 1
else:
return Recursion(x-1)*x
n =eval(input())
if n < 0:
print('给定的数<0,no value!no value!')
else:
print('{}!={}'.format(n,Recursion(n)))
def Recursion(x):
if x == 1 or x == 0:
return 1
else:
return Recursion(x-1)*x
n =eval(input())
if n < 0:
print('给定的数<0,no value!no value!')
else:
print('{}!={}'.format(n,Recursion(n)))