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

vector<int> table(100001);

int pr2() {
  int sum = 0;
  int cnt = 0;
  for (int i = 1; i < table.size(); i++) {
    sum = 0;
    for (int j = i; ; j++){
      sum += j;
      if (sum >= table.size()) break;
      table[sum]++;
    }
  }
  return (cnt);
}

int process(int a, int b) {
  return table[a] * table[b];
}

int main() {
  int S; cin >> S;
  pr2();
  for (int i = 1; i < 10; i++){
    // cout << table[i] << endl;
  }
  long long ans = 0;
  for (int a = 1; a <= S; a++) {
    if (S%a == 0) {
      int b = S/a;
      ans += process(a, b);
    }
  }
  cout << ans << endl;
}

