s = 1
n = int(input("请输入一个数:"))
i = 1
while n >= 1:
s = s * i
i = i + 1
n = n - 1
else:
print(str(i-1)+"!=", s)
s = 1
n = int(input("请输入一个数:"))
i = 1
while n >= 1:
s = s * i
i = i + 1
n = n - 1
else:
print(str(i-1)+"!=", s)