#include #define N 1005 using namespace std; const int P=1e9+7; int fac[N],inv[N],f[N][N][11]; int C(int x, int y){ if (x