#D1770. Sum of QQ

    ID: 1476 Type: Default 2000ms 536MiB

Sum of QQ

Sum of QQ

You received a card with an integer SS and a multiplication table of infinite size. All the elements in the table are integers, and an integer at the ii-th row from the top and the jj-th column from the left is Ai,j=i×jA_{i,j} = i \times j (i,j1i,j \geq 1). The table has infinite size, i.e., the number of the rows and the number of the columns are infinite.

You love rectangular regions of the table in which the sum of numbers is SS. Your task is to count the number of integer tuples (a,b,c,d)(a, b, c, d) that satisfies 1ab,1cd1 \leq a \leq b, 1 \leq c \leq d and i=abj=cdAi,j=S\sum_{i=a}^b \sum_{j=c}^d A_{i,j} = S.

Input

The input consists of a single test case of the following form.

SS

The first line consists of one integer SS (1S1051 \leq S \leq 10^5), representing the summation of rectangular regions you have to find.

Output

Print the number of rectangular regions whose summation is SS in one line.

Examples

Input

25

Output

10

Input

1

Output

1

Input

5

Output

4

Input

83160

Output

5120

inputFormat

Input

The input consists of a single test case of the following form.

SS

The first line consists of one integer SS (1S1051 \leq S \leq 10^5), representing the summation of rectangular regions you have to find.

outputFormat

Output

Print the number of rectangular regions whose summation is SS in one line.

Examples

Input

25

Output

10

Input

1

Output

1

Input

5

Output

4

Input

83160

Output

5120

样例

25
10