#include <bits/stdc++.h>
using namespace std;
#pragma optimize("-O3")
#define int long long int
#define f first
#define s second
#define pb push_back
#define endl '\n'


 
main() {
	ios::sync_with_stdio(false);
	cin.tie(NULL);
	cout.tie(NULL);
	int k;
	cin>>k;
	int ans=0;
	for(int i=1; i<=k; i++){
		for(int j=1; j*i<=k; j++){
			ans+=(k/(i*j));
		}
	}
	cout<<ans;
	return 0;
}

#include <bits/stdc++.h>
using namespace std;


#define int long long int
typedef pair<int, int> pii;
#define f(i,a,b) for(int i=a;i<b;i++)
#define fo(i,a,b) for(int i = a; i<=b;i+=1)
#define rf(i,a,b)  for(int i=a;i>=b;i--)
#define vll vector<int>
#define sz(a) int(a.size())
#define all(v) v.begin(), v.end()
#define pb push_back
#define pf push_front 
#define MAXN 100010
#define MOD 1000000007
#define mod 998244353
#define deb(x) cout << '>' << #x << ':' << x << endl;
#define debug(x) cout << '>' << #x << ':' << x << " ";
#define nl '\n'
#define MS(x,y) fill_n(*x, sizeof x / sizeof **x, y);
#define mem(x,y) memset(x,y,sizeof(x));
#define INF 1000000000000000000
#define IO                 \
    ios::sync_with_stdio(0); \
    cin.tie(0);              \

void solve(){
    int k;
    cin >> k;
    int ans = 0;
    fo(i, 1, k){
        if(i*i*i <= k){
            ans++;
        }
        else {
            break;
        }
    }
    fo(i, 1, k){
        if(i*i > k)break;
        fo(j, i+1, k){
            if(i*i*j <= k){
                ans+=3;
            }
            else {
                break;
            }
        }
    }
    
    fo(i, 1, k){
        fo(j, i+1, k){
            if(i*j*j <= k){
                ans+=3;
            }
            else {
                break;
            }
        }
    }
    fo(i, 1, k){
        f(j, i+1, k){
            if(i*j > k)break;
            fo(x, j+1, k){
                if(i*j*x <= k){
                    ans += 6;
                }
                else break;
            }
        }
    }

    cout << ans << nl;
    return ;
}
main()
{
    IO;
    int T = 1;
    // cin >> T;
    for(int c=1; c <= T; c++){
        solve();
        // cout<<"Case #"<<c<<": ";
    }
    return 0;
}