| 记录编号 | 
        340522 | 
        评测结果 | 
        AAAAAAAAAAAAAAAAAAAA | 
    
    
        | 题目名称 | 
        2524.__完全平方数 | 
        最终得分 | 
        100 | 
            
    
    
        | 用户昵称 | 
         Hzoi_Yniverse | 
        是否通过 | 
        通过 | 
    
    
        | 代码语言 | 
        C++ | 
        运行时间 | 
        7.458 s  | 
    
    
        | 提交时间 | 
        2016-11-06 19:26:56 | 
        内存使用 | 
        73.24 MiB  | 
        
    
    
    
    		显示代码纯文本
		
		#include <iostream>
#include <cstdio>
#include <cstring>
#include <algorithm>
using namespace std;
typedef long long LL;
const int maxn=5000010;
LL p[maxn],a[maxn],cnt,mod=100000007;
bool check[maxn];
void GetPrime(){
	for(int i=2;i<maxn;i++){
		if(!check[i]) p[++cnt]=i;
		for(int j=1;j<=cnt;j++){
			if(i*p[j]>=maxn) break;
			check[i*p[j]]=1;
			if(i%p[j]==0) break;
		}
	}
}
LL quickpow(LL x,LL m){
	LL ans=1;
	while(m){
		if(m&1) ans*=x;
		x*=x; m>>=1;
		ans%=mod; x%=mod;
	}
	return ans;
}
int main(){
	freopen("xnumber.in","r",stdin);
	freopen("xnumber.out","w",stdout);
	GetPrime();
	LL n;scanf("%lld",&n);
	for(int i=1;i<=cnt;i++){
		for(LL j=p[i];j<=n;j*=p[i]) a[i]+=n/j;
	}
	LL ans=1;
	for(int i=1;i<=cnt;i++) ans=(ans*quickpow(p[i],a[i]/2))%mod;
	printf("%lld\n",(ans*ans)%mod);
	//system("pause");
	return 0;
}