Keenan got an undirected clique for his birthday! As part of his birthday present, he gets to direct the edges in his clique!
Keenan hates triangles. He has decided to direct the edges of his clique such that there is a minimum number of triangles, but he's not sure how. Can you help him?
Note: A triangle is a set of distinct vertices such that is reachable from , is reachable from , and is reachable from .
Constraints
In tests worth 14 marks, .
Input Specification
The first and only line contains one integer , the number of vertices in Keenan's clique.
Output Specification
Let be the minimum number of triangles that can be obtained over all possible ways of directing the edges. Output , the number of ways to
orient the edges in the clique such that the resulting graph has exactly triangles. Because may be large, output it modulo 998244353
.
Sample Input
1
Sample Output
1
Comments