def 解():

    iN = int(eval(input()))

    iD = 10**9 + 7



    if iN < 3:

        print(iN)

        exit()



    aS = [1]*(iN+1)

    dP={}

    for i in range(2,iN+1):

        if aS[i]:

            dP[i] = 1

            for j in range(i*2,iN+1,i):

                aS[j] = 0



    for i in range(2,iN+1):

        for iP in dP:

            while i % iP == 0:

                dP[iP]+=1

                i //= iP

    iAns = 1

    for iP in dP:

        iAns *= dP[iP]

        iAns %= iD

    print(iAns)

解()



def 解():

    iN = int(eval(input()))

    iD = 10**9 + 7



    if iN < 3:

        print(iN)

        exit()



    aS = [1]*(iN+1)

    dP={}

    for i in range(2,iN+1):

        if aS[i]:

            dP[i] = 1

            for j in range(i*2,iN+1,i):

                aS[j] = 0



    for i in range(2,iN+1):

        for iP in dP:

            while i % iP == 0:

                dP[iP]+=1

                i //= iP

            if i == 1:

                break

    iAns = 1

    for iP in dP:

        iAns *= dP[iP]

        iAns %= iD

    print(iAns)

解()

def 解():
    iN = int(eval(input()))
    iD = 10**9 + 7
    if iN < 3:
        print(iN)
        exit()
    aS = [1] * (iN + 1)
    dP = {}
    for i in range(2, iN + 1):
        if aS[i]:
            dP[i] = 1
            for j in range(i * 2, iN + 1, i):
                aS[j] = 0
    for i in range(2, iN + 1):
        for iP in dP:
            while i % iP == 0:
                dP[iP] += 1
                i //= iP
    iAns = 1
    for iP in dP:
        iAns *= dP[iP]
        iAns %= iD
    print(iAns)


解()

def 解():
    iN = int(eval(input()))
    iD = 10**9 + 7
    if iN < 3:
        print(iN)
        exit()
    aS = [1] * (iN + 1)
    dP = {}
    for i in range(2, iN + 1):
        if aS[i]:
            dP[i] = 1
            for j in range(i * 2, iN + 1, i):
                aS[j] = 0
    for i in range(2, iN + 1):
        for iP in dP:
            while i % iP == 0:
                dP[iP] += 1
                i //= iP
            if i == 1:
                break
    iAns = 1
    for iP in dP:
        iAns *= dP[iP]
        iAns %= iD
    print(iAns)


解()

+            if i == 1: +                break