MaxMinMin

Time limit: 0.5s Memory limit: 256MB Input: Output:

Task

Given a natural number NN, consider the set of numbers {1,2,,N}\{1, 2, \dots, N\}. For each KK from 11 to NN, compute the function:

f(K)=S{1,2,,N},S=K(max(S)min(S))f(K) = \sum_{S \subseteq \{1, 2, \dots, N\}, |S| = K}{(\max(S) - \min(S))}

Since this number can become very large, only its remainder modulo 109+910^9+9 is required.

Input data

The input contains a single integer, the number NN.

Output data

The output consists of a single line containing NN numbers, separated by one space, where the ii-th number is f(i)f(i).

Constraints and clarifications

  • 1N1 000 0001 \leq N \leq 1 \ 000 \ 000.
# Points Restrictions
1 16 1N161 \leq N \leq 16
2 29 1N10241 \leq N \leq 1024
3 55 No additional restrictions.

Example

stdin

3

stdout

0 4 2

Log in or sign up to be able to send submissions!