Do you think that eating candies is easy? This is not the case when they are oxygen candies!
As you like everything sweet, you have just bought a fresh pack of candies. But regular candies, of course, would not suffice. In your quest to taste everything in life, you have chosen special oxygen candies, rare and exclusive.
Now, when it comes to eating them, you decide to solve the "eating oxygen candies" problem in a mathematical way.


Suppose you want to eat oxygen candies over the next days (1 \leq M \leq N), eating the same number of candies each day. This is possible only if divides . If does not divide , you plan to eat \left\lfloor \frac{N}{M} \right\rfloor candies each day, and divide the remaining N \bmod M candies into equal smaller parts. If this is possible, you'll eat exactly one of these parts each day.
How many possible values of are there?
The only line contains an integer (1 \leq N \leq 10^{12}).
Print the number of possible values of .
Example 1
In the sample, possible values of are: (eat all candies in one day), (divide one candy into two equal parts, and eat two whole candies and one of the parts each day), (divide one candy into four equal parts, and eat one whole candy and one part each day), and (eat one candy each day). Note that M = 3 is not possible, as you cannot divide N \bmod M = 2 candies into M = 3 equal parts.