ll n;{mint a,b,c;a=b=1;c=0;rd(n);rep(i,n-1)i%2?b+=a=c*i:(c+=a=b*i);wt(a);}