#include #define rep(i, a, n) for(int i = a; i < n; i++) #define int long long using namespace std; string change_to_s(int n){ stringstream ss; ss< st; for(int i = 1; i * i <= n; i++){ if(n % i == 0){ st.insert(change_to_s(n / i) + change_to_s(i)); st.insert(change_to_s(i) + change_to_s(n / i)); // cout << change_to_s(n / i) + change_to_s(i) << " " << change_to_s(i) + change_to_s(n / i) << endl; } } return st.size(); } signed main(){ int n; cin >> n; cout << solve(n) << endl; }