#include using namespace std; using ll = long long; #define rep(i,m,n) for(int i=m; i> N; set ans; for(ll i = 1LL; i*i <= N; ++i){ if(N % i != 0LL) continue; string s = to_string(i); string t = to_string(N/i); ans.insert(s + t); ans.insert(t + s); } //for(auto &s : ans) cout << s << endl; cout << ans.size() << endl; return 0; }