#include using namespace std; int main() { int64_t n; cin >> n; set s; for (int64_t i = 1; i * i <= n; i++) { if (n % i) continue; int64_t d = n / i, r = n % i; s.insert(to_string(d) + to_string(r)); s.insert(to_string(r) + to_string(d)); } cout << s.size() << endl; }