#include #include #include #include #define LL long long using namespace std; string str(LL il, LL ir){ string ret = to_string(il); ret += to_string(ir); return ret; } int main () { LL n; cin >> n; set myset; LL max = static_cast(sqrt(n)) + 1; for (LL i = 1; i < max; ++i) { if (n % i != 0) continue; LL il = i; LL ir = n / i; myset.insert(str(il, ir)); myset.insert(str(ir, il)); } cout << myset.size() << endl; }