#include <bits/stdc++.h>
#define For(i, a, b) for(int (i)=(int)(a); (i)<(int)(b); ++(i))
#define rFor(i, a, b) for(int (i)=(int)(a)-1; (i)>=(int)(b); --(i))
#define rep(i, n) For((i), 0, (n))
#define rrep(i, n) rFor((i), (n), 0)
#define fi first
#define se second
#define double long double
using namespace std;
typedef long long lint;
typedef unsigned long long ulint;
typedef pair<int, int> pii;
typedef pair<lint, lint> pll;
template<class T> bool chmax(T &a, const T &b){if(a<b){a=b; return true;} return false;}
template<class T> bool chmin(T &a, const T &b){if(a>b){a=b; return true;} return false;}
template<class T> T div_floor(T a, T b){
    if(b < 0) a *= -1, b *= -1;
    return a>=0 ? a/b : (a+1)/b-1;
}
template<class T> T div_ceil(T a, T b){
    if(b < 0) a *= -1, b *= -1;
    return a>0 ? (a-1)/b+1 : a/b;
}

constexpr lint mod = 1e9+7;
constexpr lint INF = mod * mod;
constexpr int MAX = 200010;

lint f(lint n){
    n *= 2;
    lint ret = 0;
    for(lint s=1; s*s<n; ++s)if(n%s == 0){
        lint t = n / s;
        if(s%2 != t%2) ++ret;
    }
    return ret;
}

int main(){
    lint s;
    scanf("%lld", &s);
    lint ans = 0;
    for(lint x=1; x*x<=s; ++x)if(s%x == 0){
        lint tmp = f(x) * f(s/x);
        ans += tmp * (x*x == s ? 1 : 2);
    }
    printf("%lld\n", ans);
}
