/*#include<stdio.h>
int add(int x, int y) {
int z = x + y;
return z;
}
int main() {
int a, b, c;
scanf("%d %d", &a, &b);
c=add(a,b);
printf("%d", c);
return 0;
}*/
/*
#include<stdio.h>
void f()
{
printf("hello\n");
}
int main()
{
f();
f();
f();
}*/
/*#include<stdio.h>
void f()
{
printf("%d", 123);
}
int main()
{
f();
}*/
/*#include<stdio.h>
void f()
{
printf("%c",'*');
}
int main()
{
f();
}*/
/*#include<stdio.h>
void f()
{
printf("%s", "**");
}
int main()
{
f();
}*/
/*#include<stdio.h>
char f()
{
return 'A';
}
int main()
{
printf("%c",f());
return 0;
}*/
/*#include<stdio.h>
int f()
{
return 1;
}
int main()
{
printf("%d", f());
return 0;
}*/
/*
#include<stdio.h>
long long int f()
{
return -2147483649LL;
}
int main()
{
printf("%lld", f());
}
*/
/*#include<stdio.h>
float f()
{
return 3.14f;
}
int main()
{
printf("%f", f());
}*/
/*double f()
{
return 3.1415926535897;
}
int main()
{
printf("%13lf", f());
return 0;
}*/
/*#include<stdio.h>
int n;
void f(int a)
{
if(a==1)printf("hello\n");
else if(a==2)printf("world\n");
else printf("\n");
}
int main()
{
scanf("%d", %n);
f(n);
return 0;
}*/
/*#include<stdio.h>
void f(int k)
{
printf("%s\n", k%2==0?"even":"odd");
}
int main()
{
int n;
scanf("%d", &n);
f(n);
return 0;
}*/
/*#include<stdio.h>
int n;
int f(int c)
{
if(c==0) printf("false\n");
else printf("true\n");
}
int main()
{
scanf("%d", &n);
f(n);
return 0;
}*/
/*#include<stdio.h>
int n;
int f(int c)
{
if(c) printf("true\n");
else printf("false\n");
}
int main()
{
scanf("%d", &n);
f(n);
return 0;
}*/
/*#include<stdio.h>
int n;
int f(int c)
{
if(c==0) printf("zero\n");
else printf("non zero\n");
}
int main()
{
scanf("%d", &n);
f(n);
return 0;
}*/
/*#include<stdio.h>
int n;
int f(int c)
{
if(c<0) printf("negative\n");
else if(c==0) printf("zero\n");
else printf("positive\n");
}
int main()
{
scanf("%d", &n);
f(n);
return 0;
}*/
/*#include<stdio.h>
int n;
int f(int c)
{
if(c%2==1) printf("prime\n");
else if(c%2==0) printf("composite\n");
}
int main()
{
scanf("%d", &n);
f(n);
return 0;
}*/
#include<stdio.h>
int main()
{
int n, i, s=0;
scanf("%d", &n);
for(i=1; i<=n; i++) {
if(n%i==0) s++;
}
// if
// else
printf("%d", s);
}