#include<bits/stdc++.h>
#define ll long long
using namespace std;
const int p=1e9+7;
const int N=1e3+5;
int a[N],n;
ll ans;
int main()
{
	scanf("%d",&n);
	for(int i=2;i<=n;i++){
		int k=i;
		for(int j=2;j*j<=k;j++)
			while(k%j==0)a[j]++,k/=j;
		if(k!=1)a[k]++;
	}
	ans=1;
	for(int i=1;i<=n;i++)
		ans=ans*(a[i]+1)%p;
	printf("%lld",ans);
	return 0;
}