#include using namespace std; using ll = long long; template vector divisor(T n){ vector res; for(T i = 1; i * i <= n; i++){ if(n % i == 0){ res.push_back(i); T j = n / i; if(i != j)res.push_back(j); } } sort(res.begin(),res.end()); return res; } int main() { ll n; cin >> n; vector a = divisor(n); set st; for(auto i : a) { ll j = n / i; string si = to_string(i), sj = to_string(j); si += sj; st.insert(si); } cout << st.size() << endl; }