#include<bits/stdc++.h>
#define f first
#define s second
#define pb push_back
#define M (L+R)/2
#define N 500009
#define inf 99999999999
#define ll long long
#define mod 1000000007
#define sz size();
using namespace std;

ll k,ans;

int main(){

	ios::sync_with_stdio(0);
	
	cin>>k;
	
	for(ll a=1;a<=sqrt(k);a++){
		for(ll b=a;b<=k;b++){
			int c = k/a/b;
			if(c<b)break;
			if(a==b && b==c){
				ans++;
				continue;
			}
			if(a==b){
				ans+=3*(c-b)+1;
				continue;
			}
			if(b==c){
				ans+=3;
				continue;
			}
			ans+=6*(c-b)+3;
		}
	}
	cout<<ans<<endl;
	
	return 0;
}

#include<bits/stdc++.h>
// #include<atcoder/all>
using namespace std;
// using namespace atcoder;
using lint = long long;
using graph = vector<vector<int>>;
#define endl '\n'
lint const mod = 1e9+7;
//long const mod = 998244353;


int main(){
    int n;
    cin >> n;
    vector<pair<int,int>>ans(n);
    for(int i=1;i<=n;i++){
        cout << (i*2-1+n)%n + 1 << " " << (i*2)%n + 1 << endl;
    }
}

