#include <iostream>
#include <string>
#include <set>

using lint = long long;

void solve() {
    lint n;
    std::cin >> n;

    std::set<std::string> ss;
    for (lint p = 1; p * p <= n; ++p) {
        if (n % p != 0) continue;
        ss.insert(std::to_string(p) + std::to_string(n / p));
        ss.insert(std::to_string(n / p) + std::to_string(p));
    }

    std::cout << ss.size() << std::endl;
}

int main() {
    std::cin.tie(nullptr);
    std::ios::sync_with_stdio(false);

    solve();

    return 0;
}