#include using namespace std; typedef long long int64; void solve() { int64 N; cin >> N; set< string > st; for(int64 i = 1; i * i <= N; i++) { if(N % i == 0) { st.emplace(to_string(i) + to_string(N / i)); st.emplace(to_string(N / i) + to_string(i)); } } cout << st.size() << endl; } int main() { cin.tie(0); ios::sync_with_stdio(false); solve(); }