# https://helloacm.com/teaching-kids-programming-permutation-of-rooks-do-not-attack-each-other/
# https://binarysearch.com/problems/N-Rooks
# EASY, MATH

class Solution:
    def solve(self, n):
        return math.factorial(n)
