#include #include #include using namespace std; int main(){ long N; cin >> N; vector answers; for(int i = 1; i * i <= N; i++){ if(N % i == 0){ answers.push_back(to_string(i) + to_string(N / i)); answers.push_back(to_string(N / i) + to_string(i)); } } sort(answers.begin(), answers.end()); int ans = 1; for(int i = 1; i < answers.size(); i++){ ans += (answers[i] != answers[i - 1]); } cout << ans << endl; }