class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
String str_0 = scan.nextLine().trim();
try{
int n = Integer.parseInt(str_0);
int result = solution(n);
System.out.println(result);
} catch (Exception e){
System.out.println(0);
} finally {
scan.close();
}
}
public static int solution(int n){
int result = 0;
if(n < 1){
return 0;
}
if(n == 1){
return 1;
}
if(n == 2){
return 2;
}
result++ ;
for(int i = 2; i <= n/2; i++){
if(n % i == 0){
result++ ;
}
}
result++ ;
return result;
}
}