#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int x;
  cin >> x;
  long long int y = 6 * x;
  long long int equal = -1;
  long long int upperLim = pow(3 * x, 1.0 / 3);
  std::vector<pair<long long int, long long int> > v;
  for (long long int i = 1; i <= upperLim; i++) {
    if (y % (i * (i + 1)) == 0) {
      long long int n = y / (i * (i + 1));
      n = n + i - 1;
      if (n % 3 == 0) {
        n = n / 3;
        if (i == n) {
          equal = i;
          break;
        } else {
          v.push_back(make_pair(i, n));
        }
      }
    }
  }
  long long int l = v.size();
  if (equal != -1) {
    cout << 2 * l + 1 << endl;
    for (int i = 0; i < l; i++) {
      cout << v[i].first << " " << v[i].second << endl;
    }
    cout << equal << " " << equal << endl;
    for (int i = l - 1; i >= 0; i--) {
      cout << v[i].second << " " << v[i].first << endl;
    }
  } else {
    cout << 2 * l << endl;
    for (int i = 0; i < l; i++) {
      cout << v[i].first << " " << v[i].second << endl;
    }
    for (int i = l - 1; i >= 0; i--) {
      cout << v[i].second << " " << v[i].first << endl;
    }
  }
}
