#include <bits/stdc++.h>
using namespace std;
#define faster                    \
    ios_base::sync_with_stdio(0); \
    cin.tie(0);                   \
    cout.tie(0);
#define ff first
#define ss second
#define pb push_back
#define gcd(a, b) __gcd(a, b)
#define lcm(a, b) (a * (b / gcd(a, b)))
#define all(a) a.begin(), a.end()
#define mod 10000007
#define num 1000000


/**----data type----*/
typedef long long int ll;
typedef unsigned long long int llu;
int main()
{
    faster
    int n,cnt=0;
    cin>>n;
    for(int i=1; i<=n; i++)
    {
        for(int j=1; i*j<=n; j++)
        {
            for(int k=1; i*j*k<=n; k++)
            {
                cnt++;
//                    cout<<i<<' '<<j<<' '<<k<<endl;
            }
        }
    }
    cout<<cnt<<endl;
}




#include <cstdio>

long long two(int K) {
	long long ans = 0;
	for(int i = 1, j = 1; i <= K && j <= K; i = j+1, j = K/(K/i)) {
		ans += (j - i + 1) * (K/i);
		if(j == K) break;
	}
	return ans;
}

int main() {
	int K; scanf("%d", &K);
	long long ans = 0;
	for(int i = 1, j = 1; i <= K && j <= K; i = j+1, j = K/(K/i)) {
		ans += (j - i + 1ll) * two(K/i);
		if(j == K) break;
	}
	printf("%lld", ans);
	return 0;
}