1 8 5 0
/*#include#include #include #define N 20 int n,s,a,l[N]; int kefang(int a) { int j; for(j=1;jn&&n>0) s++; else{ for(i=1;i<=n;i++) { l[a]=i; if(kefang(a)) xiaqi(a+1); } } return s; } int main() { while(~scanf("%d",&n)&&n) { int num; s=0; num=xiaqi(1); printf("%d\n",num); } return 0; }*/ #include using namespace std; int main() { int n; int a[11]={0,1,0,0,2,10,4,40,92,352,724}; while(cin>>n) { if(n==0) break; cout<