- Time limit: 1.00 s
- Memory limit: 512 MB
A functional graph is a directed graph where each node has outdegree . For example, here is a functional graph that has nodes and components:
Input
The only input line has an integer : the number of nodes.
Output
Print lines: for each the number of graphs modulo .
Constraints
Example
Input:
3
Output:
17 9 1