#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
using namespace std;

int main() {
    int n;
    cin >> n;
    vector<string> stock;
    for(int i = 1;i <= n;i++){
        if(n%i == 0){
            string a;
            a = to_string(i) + to_string(n/i);
            if(find(stock.begin(), stock.end(), a) == stock.end())stock.push_back(a);
        }
    }
    cout << stock.size() << endl;
return 0;
}