Consider the following problem:
Consider the following algorithm to solve it:
You are given a single integer n. Find the number of permutations on which the described algorithm solves the problem incorrectly.
The only line contains a single integer n (1≤n≤42).
Print the number of permutations on which the described algorithm works incorrectly.
In the first example test case, for n=3, the only permutation resulting in an incorrect output is ⟨3,2,1⟩. The algorithm returns ⟨2,1,3⟩, while the correct answer is ⟨1,3,2⟩.