sum=1
for j in range(1,31):
        sum=sum*j
print(sum)