#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 <= 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; assert(0 <= n && n <= (1e12)); cout << solve(n) << endl; }