#include<bits/stdc++.h>
using namespace std;
const int N=1e9+7;
typedef long long ll;
ll a[1007];
int main()
{
	int n,i;


		memset(a,0,sizeof(a));
		cin>>n; 
		for (i=2;i<=n;i++)
		{
			int x=i;
			for (int j=2;j<=x;j++)
		{
			while (x%j==0)
			{
		     a[j]++;
		     x/=j;
			}
		}
	
		a[x]++;
			
		}
		   ll sum=1;
			for (i=2;i<=n;i++)
			{
				if (a[i]!=0)
				sum=ll(sum*(ll(a[i]+1)))%N;
			}
		cout<<sum%N<<endl;
	
return 0;	
}