#include #include #include #include #include #include #define ALL(x) (x).begin(),(x).end() #define RALL(x) (x).rbegin(),(x).rend() #define REP(i,a,n) for(int i = (a);i < (n);i++) #define PI 3.14159265359 #define MOD 1000000007 using namespace std; int main(){ long long n; cin >> n; vector s; REP(i, 1, n/2+1){ if(n%i == 0){ s.push_back(to_string(i)+to_string(n/i)); s.push_back(to_string(n/i)+to_string(i)); } } set s2(ALL(s)); cout << s2.size() << endl; return 0; }