#include using namespace std; typedef long long ll; int main() { ll N; scanf("%lld", &N); unordered_set s; for (ll i = 1; i * i <= N; ++i) { if (N % i == 0) { if (N / i == i) s.insert(to_string(i) + to_string(i)); else { s.insert(to_string(i) + to_string(N / i)); s.insert(to_string(N / i) + to_string(i)); } } } printf("%lld\n", (ll)s.size()); return 0; }