#include<bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef pair<ll,ll> mp;
ll inf =  1e9;
#define N 1e5+10
vector<ll> yaku(ll n ){
    set<ll> res;
    vector<ll> tmp;
    for(ll i=1;i*i<=n;i++){
	if( n%i == 0 ){
	    res.insert( i );
	    res.insert( n/i );
	}
    }
    for(auto i:res)tmp.push_back( i );
    return tmp;
}

int main(){
    vector<ll> cnt(N, 0 );
    ll s;
    cin>>s;
    for(ll i=1;i<N;i++){
	ll sum = i;
	for(ll j=1;sum <N ;j++){
	    cnt[sum]++;
	    sum += i+j;
	}
    }
    vector<ll> Y = yaku( s );
    ll res = 0;
    //cout<<"OK"<<endl;
    for(auto i:Y ){
	
	if( i == s/i ){
	    res += cnt[i]*cnt[i];
	}else{
	    res += cnt[i]*cnt[s/i];
	}
	
    }
    cout<<res<<endl;

    return 0;
}

