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