#include <iostream>
using namespace std;
int main()
{
    int n;   cin >> n;
    int arr[n + 1];
    int mamad = 2;
    int sum = 2;
    while ( mamad < n )
    {
        if ( n % mamad == 0 )
        {
            arr[mamad] = 1;
            mamad ++;
            sum += 1;
        }

        else if ( n % mamad != 0 )
        {
            mamad ++;
        }
    }

    cout << sum;

    return 0;
}