#include <bits/stdc++.h>
using namespace std;
#define ll            long long int
#define ull           unsigned long long
#define ld            long double
#define sor(c)        sort((c).begin(),(c).end())
#define rsor(c)       sort((c).rbegin(),(c).rend())
#define rev(c)        reverse((c).begin(),(c).end())
#define FOR(n,i)      for(ll i=0;i<n;i++)
#define mout(a,i)     for(auto i : a){ cout<<i<<" ";}
#define FORM(i,mp)    for(auto i : mp)
#define fin(s)        freopen( s, "r", stdin );
#define fout(s)       freopen( s, "w", stdout );
#define strToInt(a)   atoi(a.c_str())
using namespace std;
void Oli(){
     int a;
     cin>>a;
     int ans = 0;
     for(int i = 1;i<=a;i++){
        for(int j = 1;j<=a;j++){
            for(int l = 1;l <= a;l++){
                if(l * j * i > a){
                    break;
                }
                ans++;
            }
            if(i * j > a) break;
        }
     }
     cout<<ans;
}
int main()
{
    int t = 1;
    //cin>>t;
    while(t--) Oli();
}

#include <cstdio>
#include <cstring>
#include <algorithm>
using namespace std;
const int SIZEN = 100010;
typedef long long LL;
int K;


int main(){
    LL ans = 0;
    scanf("%d",&K);
    for(int i = 1;i <= K;i++){
        for(int j = 1;j*i <= K;j++){
            for(int k = 1;i*j*k <= K;k++)ans++;
        }
    }
    printf("%lld\n",ans);
}