#include using namespace std; #define FOR(i,l,r) for(int i = (int) (l);i < (int) (r);i++) template bool chmax(T& a,const T& b){ return a < b ? (a = b,true) : false; } template bool chmin(T& a,const T& b){ return b < a ? (a = b,true) : false; } typedef long long ll; ll N; int main() { scanf("%lld",&N); set st; for(ll i = 1;i * i <= N;i++) if(N % i == 0){ st.insert(to_string(i) + to_string(N / i)); st.insert(to_string(N / i) + to_string(i)); } printf("%d\n",int(st.size())); return 0; }