total = 1
n = int(input("n:"))
for i in range(1, n+1):
    total = total * i
print("final total:", total)