import std.bigint,std.stdio,std.string;int M=10^^9+7,S=4629630,j;long y,z,e;void i(long x){for(y=1,e=M-2;e;e/=2,x=x*x%M)y=e%2?y*x%M:y;}void f(int n){if(n>M-n){f(M-1-n);z.i;z=n%2?y:M-y;}else{if(n%S>S/2){for(z=1;n%S;)z=z*++n%M;z.i;}else{for(y=1;n%S;)y=y*n--%M;}for(z=j=0;j<5;)z=z<<6|` !AT_3:HTVLP 6ELF/D(M' =1T/1I4]UCP:7C U WFG5>TN;HW!VHA,1%:JO"9(;?C@VCV'#<9]R1R7.16Q4,WX@V,?'95E9X=%EKE (+6@O>W@,AQ\'*Q#L\AE(/FW2?U6&P48(OP4.=M "WW((>CXYI8]L)D[N($E-;]W&$?PI2%K4V2;6S&Y":N>YL[RQ&G(3;XS_LFSA5+C6=# PM!L4*/5Q2<%>'U?#Z"LOQLD'!(9'*I4&'5(NIXA.;:MT1U6B5P.?2>6RX 9B/=="7VSG@30];HYI@K#UC806W]!]IW_J[;MTZ2L:Y,+89[)V3A2UOCMCZA^8P;()J22'S%TD>YBFANO,7=?D'U=>%M3Z$7U.G3K>:[/;)PS*-#"A>LUQTP IQ