#include #define show(x) cout << #x << " = " << x << endl using namespace std; using ll = long long; using pii = pair; template ostream& operator<<(ostream& os, const vector& v) { os << "sz=" << v.size() << "\n["; for (const auto& p : v) { os << p << ","; } os << "]\n"; return os; } template ostream& operator<<(ostream& os, const pair& p) { os << "(" << p.first << "," << p.second << ")"; return os; } constexpr ll MOD = 1e9 + 7; template constexpr T INF = numeric_limits::max() / 100; int main() { ll n; cin >> n; vector cand; for (auto i = 1; i * i <= n; i++) { if (n % i == 0) { if (i * i == n) { const string str = to_string(i) + to_string(i); cand.push_back(str); } else { const string str1 = to_string(i) + to_string(n / i); const string str2 = to_string(n / i) + to_string(i); cand.push_back(str1); cand.push_back(str2); } } } sort(cand.begin(), cand.end()); cand.erase(unique(cand.begin(), cand.end()), cand.end()); cout << cand.size() << endl; return 0; }