#define _GLIBCXX_DEBUG #define ll long long #include using namespace std; using Graph = vector>; int main(){ ll N; cin >> N; map mp; for(ll i = 1; i*i <= N; i++){ if(N%i == 0){ if(i*i == N){ string A = to_string(i), B = to_string(i); string C = A+B; mp[C]++; }else{ string A = to_string(N/i), B = to_string(i); string C = A+B, D = B+A; mp[C]++; mp[D]++; } } } cout << mp.size() << endl; }