#include<bits/stdc++.h>
using namespace std;
//const int N=1e9+7;
typedef  long long ll;
int main()
{
	int n,i;
	//ll a[1007];
	vector<int>v(1000);
		//memset(a,0,sizeof(a));
		cin>>n; 
		for (i=1;i<=n;i++)
		{
			int x=i;
			for (int j=2;j<=x;j++)
		{
			while (x%j==0)
			{
		     v[j]++;
		     x/=j;
			}
		}
	//a[x]+=1;	
	}
	ll sum=1;
	for (i=0;i<1000;++i)
	{
	//if (a[i]!=0)
	sum=(ll(sum*((v[i]+1))))%1000000007;
	}
	cout<<sum<<endl;	
return 0;	
}