Polycarp has set of integers 1, ..., N and parameters M и K. Polycarp is interested in number of permutations {ai} from numbers 1, ..., N, so that every permutation have exactly M inversions and K numbers are in their own place. Inversion is the pair of numbers i, j, so that ai > aj и i < j. Number i is postioned in it's own place if ai = i.
Single line contains three integers N, M, K. 1 ≤ N ≤ 14,
, 0 ≤ K ≤ N.
One integer — number or permutations.
4 0 4
1
12 7 3
3000
12 25 0
3612516
12 66 0
1
| Name |
|---|


