<gh_stars>0
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

"""Problem 012

Extra Long Factorials

Source : https://www.hackerrank.com/challenges/extra-long-factorials/problem
"""
import math
print(math.factorial(int(input())))

#!/usr/bin/env python3
# -*- coding: utf-8 -*-

"""Problem 012

Extra Long Factorials

Source : https://www.hackerrank.com/challenges/extra-long-factorials/problem
"""
import math
print(math.factorial(int(input())))
#!/usr/bin/env python3 # -*- coding: utf-8 -*- Problem 012  Extra Long Factorials  Source : https://www.hackerrank.com/challenges/extra-long-factorials/problem