#P2671. Calc

Calc

Given an integer NN, count the number of pairs (a,b)(a, b) that satisfy the following conditions:

  1. 1a<bN1 \leq a < b \leq N
  2. a+ba + b divides a×ba \times b

Input Format

A single line containing the integer NN.

Output Format

A single line containing an integer representing the number of pairs (a,b)(a, b) that meet the conditions.

Example

Input:

15

Output:

4

Notes

Data scale and conditions:

  • test1: N5×107\text{test1: } N \leq 5 \times 10^7
  • test2: N108\text{test2: } N \leq 10^8
  • test3: N2×108\text{test3: } N \leq 2 \times 10^8
  • test4: N3×108\text{test4: } N \leq 3 \times 10^8
  • test5: N5×108\text{test5: } N \leq 5 \times 10^8
  • test6: N109\text{test6: } N \leq 10^9
  • test7: N109\text{test7: } N \leq 10^9
  • test8: N2311\text{test8: } N \leq 2^{31}-1
  • test9: N2311\text{test9: } N \leq 2^{31}-1
  • test10: N2311\text{test10: } N \leq 2^{31}-1