import std;

alias sread = () => readln.chomp();
alias lread = () => readln.chomp.to!long();
alias aryread(T = long) = () => readln.split.to!(T[]);

void main()
{
    // 1*2*3*4*5*6 == 2^^4 * 3^^2 * 5

    // 1*
    // 2*
    // 3*
    // 2*2*
    // 5*
    // 2*3
    auto n = lread();
    long[long] aa;
    foreach (i; 1 .. n + 1)
    {
        long[long] tmp = factorize(i);
        // writeln(tmp);
        foreach (key, value; tmp)
        {
            aa[key] = aa.get(key, 0) + value;
        }
    }
    // writeln(aa);
    long ans = 1;
    foreach (key, value; aa)
    {
        ans = ans % (10 ^^ 9 + 7) * (value + 1) % (10 ^^ 9 + 7);
    }
    writeln(ans);
}

long[long] factorize(long n)
{
    long tmp = n;
    long[long] aa;
    foreach (x; 2 .. n * n + 100)
    {
        if (tmp < x)
        {
            if (tmp != 1)
                aa[tmp] = aa.get(tmp, 0) + 1;
            return aa;
        }
        while (tmp % x == 0)
        {
            aa[x] = aa.get(x, 0) + 1;
            tmp /= x;
        }
    }
    writeln(tmp);
    assert(0);
}

void scan(L...)(ref L A)
{
    auto l = readln.split;
    foreach (i, T; L)
    {
        A[i] = l[i].to!T;
    }
}
